OOT : Reminder mir...@springhills.

by Tio.Ping.鈩 » Sun, 11 Jul 2010 01:03:07 GMT


Sponsored Links
 Guys... 
Jangan lupa ya bsk sore (minggu,11/07/10) jam 17pm-selesai :)

TIA. -----------------
Tio.Ping00:00 || 7/11/2010. 

es-bile.: sa...@yes-mobile.net

-- 
"



Other Threads

1. How long Service#onDestroy is allowed to run ?

Hello,

when stop my Service i may have several Tasks in a Threadpool, some
may take some time. Is there any Documentation available how long the
onDestroy method is allowed to run without risk an ANR Dialog ?


As an example, theres what i played with:

        @Override
        public void onDestroy()
        {
                try
                {
                        Log.d(LOG_TAG, "Service#onDestroy");
                        //
                        if (threadPool != null)
                        {
                                threadPool.shutdown();
                        }

                        try
                        {
                                Log.d(LOG_TAG, "Service#onDestroy sleeps");
                                Thread.sleep(60 * 1000L);
                                Log.d(LOG_TAG, "Service#onDestroy sleep ends");
                        }
                        catch (Exception e)
                        {
                                e.printStackTrace();
                        }
                }
                catch (final SecurityException e)
                {
                        Log.e(LOG_TAG, "shutdown failed", e);
                }
                finally
                {
                        super.onDestroy();
                }


In some circumstances it can take lots of time before the task is
completed.
I can monitor that by using ThreadPoolExcecutor#awaitTermination but i
need a safe value for it.

best regards,
Jens


-- 

2. Google sync removes third party calendars

Hi all,

I've found a problem related to the Google calendar synchronization.
Every time a google sync starts for the calendar source, it removes
all the calendars which don't belong to a google account (see also
http://code.google.com/p/android/issues/detail?id=7714).

See the following snippet found in CalendarSyncadapter (http://
android.git.kernel.org/?p=platform/packages/providers/
CalendarProvider.git;a=blob_plain;f=src/com/android/providers/calendar/
CalendarSyncAdapter.java;hb=HEAD):

    // delete calendars that are no longer sent from the server.
    final Uri calendarContentUri = Calendars.CONTENT_URI;
    final ContentResolver cr = getContext().getContentResolver();
    for (long calId : existingCalendarIds) {
        // NOTE: triggers delete all events, instances for this
calendar.
        cr.delete(ContentUris.withAppendedId(calendarContentUri,
calId),
        null /* where */, null /* selectionArgs */);
    }

Is there any chance to prevent this?

Thanks in advance
Carlo

-- 

3. Ask about gmail apps

4. RACING LIFE

5. Bluetooth : Device Name/scan/discoverable event is not getting generated.

6. Simple bluetooth presence detection?

7. how can read total byte array in image in sdcard in android