04.02.2011 21:48, Amit пишет:
Thanks for reply.

Is it necessary to ride on AlarmManager or similar other service.

To get reliable scheduled notifications, yes.

  Is
there any drawback in using background thread spawned from my process
itself.

If you just spawn a thread without a service, then you're not telling Android that what you're doing is important, and it may decide to get rid of your application's process. This will terminate the thread as well, aborting any network IO you may have at that time.

  And my process own at least one service so i can assume life
of my process will be towards higher side.

Just having a service doesn't help with extending a process' lifetime.

Android considers your service more important than others in two cases (that I know of):

- Your service was bound by a foreground application;
- The service called startForeground.

-- Kostya

Thanks,
amit

On Feb 4, 5:17 pm, Kostya Vasilyev<[email protected]>  wrote:
Yes, use AlarmManager, possibly with an IntentService or
WakefulIntentService.

--
Kostya Vasilyev --http://kmansoft.wordpress.com
04.02.2011 15:14 пользователь "Amit"<[email protected]>  написал:

Hi,
Is it possible to trigger periodic network I/O from a pocess, who is
currently in background. And in my case it is possible that none of
activiy is in foreground at the time when network i/o is requested.
This I/O is client driven.
Thanks in advance
-Amit
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]<android-developers%[email protected]>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to