What Kostya said.

When memory is critically low on the device, apps are killed outright
to regain user control. Android was originally designed for mobile
phones, and nobody wants to miss an incoming call because they have
run out of memory. No notification is passed to the user, because well
written apps should handle this themselves. Some will want to alert
the user, others will want to carry on where they left off without
bothering the user about the event.

As a user, you can do the following:

A) Contact the developers of Nimbuzz and explain the problem you are
having. They have probably not benchmarked against such high load, and
as a long-running service the app should really have a recovery
process for when it is killed. An alarm manager could periodically
check an "is logged in" flag, and automatically log the user back in
if the background service was killed.

B) Don't try to run so many tasks at once, or purchase a phone with
more available memory (depending on your individual requirements).



On Wed, Jun 23, 2010 at 5:13 PM, Kostya Vasilyev <[email protected]> wrote:
> Simon,
>
> I think this should be taken up with developers of these apps.
>
> In particular, my recommendations to them would be:
>
> - Use a startForeground / setForeground call to mark the service as being
> important to the user, do it only while the user is logged in.
>
> - Display a notification the phone's status bar, so the user knows if the
> service is still kicked out of memory.
>
> - Consider using AlarmManager to restart the service and re-login if there
> is an active logged in session.
>
> -- Kostya
>
>
> 23.06.2010 20:07, Simon Broenner пишет:
>>
>> 1. Why am I, the user, not informed the the application has died, and
>> hence, the connection has been lost?
>> 2. Why are all the IM apps being killed, and not my other background
>> apps? Sipdroid and Locale have NEVER been killed in this fashion.
>>
>
>
> --
> Kostya Vasilev -- 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

-- 
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