Thank you for your prompt reply.
On Nov 25, 2:20 am, Dianne Hackborn <
hack...@android.com> wrote:
> On Tue, Nov 24, 2009 at 8:22 AM, Billy Cui <
billy...@gmail.com> wrote:
> > Sure I know the principle for killing the process, the point is too
> > many times our running background service was killed. I know it can
> > be restarted by our programming, but you will lost many information
> > you current run and will sure takes more cpu time and battery for
> > restart it.
>
> If your service is being killed, it is simply because there is not enough
> memory to keep everything running that has been requested. The issue is not
> with the background killing mechanism, but with there not being enough RAM
> for everything that is asking to run.
>
> Also, since both of these bugs are explicitly about the cyanogen mod, it is
> not something we will spend investigating; that only makes sense if they are
> reproducible on a standard platform.
>
> Heck, the bugs don't even say which -version- of the platform they are
> running. And if it is 2.0, then what is being run is (a) not a final
> release, and (b) not yet optimized to run on lower-end devices like the G1.
>
That sounds reasonable, maybe only cyanogen mod have such bug because
of his tweak. Then I will just keep on watching it.
> As for the PRIORITY, as my known, there is no such priority you can
>
> > set in programming. Also, I know the foreground app won't be killed,
> > and I never said so, I said, IT HAS SOME CHANGE TO HARM THEM, not kill
> > them. So I take the problem with Phone app as example, Phone app was
> > harmed because of the background ContactsProvider was killed.
>
> Phone app was harmed because it had a null pointer exception it wasn't
> handling.
>
NPE should harm the Phone app, but if the ContactsProvider was not
killed, there should no such NPE, am I right?
> > Or you can say that's because of bad programming, if so, could you
> > tell me how to fix it with good programming? I will happily take my
> > questions back:)
>
> As JBQ says, what are you trying to contribute here? This list is for
> contributing to the platform.
Sorry, I maybe wrong, problem about the background killing mechanism
should post in other group?
I just want to find a way for the developers can keep their background
process away from been killed, maybe use a special signal, of course
it should require special permission for this mechanism.
If it's not belong to this group, I say sorry to everyone in the
group :)
>
> --
> Dianne Hackborn
> Android framework engineer
>
hack...@android.com