On Nov 6, 9:02 pm, forrestxu <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have question. For test purpose, I want to kill an activity of an
> android application when it is paused or stopped to simulate the
> android system kill an activity when it is in low resource.
>
> How to it?
>

I don't think there generally is a way to kill an activity from the
outside. Have you tried to see what happens if the activity calls
finish()? Another way to simulate the system responding to low memory
is to actually cause the real condition: write a memory-hog activity
which does nothing but allocate memory until the system runs out of
it...


Bernhard

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