Best practice to test what happens when my application is killed

by qvark » Tue, 09 Mar 2010 23:23:12 GMT


Sponsored Links
 Hi,

I'm having troubles with users that report that if they leave the
application opened and after a few hours when they return to it the
app crashes. I'm pretty sure it is because I'm not storing/restoring
the status correctly when my process is killed by the system, but I
would like to be able to test it in a repeatable way.

Which is the best way to simulate the same behaviour that happens when
Android kills my process on low memory conditions? (killing the
process from the DDMS view, sending a signal from the adb, ...)

Thanks,

Jose Luis

--



Best practice to test what happens when my application is killed

by TreKing » Wed, 10 Mar 2010 00:21:16 GMT


 



Perhaps not the "best", but an easy thing to do is just open your app, press
home Key, the proceed to open a few other apps (heavy stuff like the Browser
or Maps), then try your app again. It will probably have been killed.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
 http://sites.google.com/site/rezmobileapps/treking 

--


Sponsored Links


Best practice to test what happens when my application is killed

by Lance Nanek » Wed, 10 Mar 2010 03:02:04 GMT


 The Dev Tools app on the emulator has an option that might help:




--



Best practice to test what happens when my application is killed

by Streets Of Boston » Wed, 10 Mar 2010 05:29:06 GMT


 If you want to test the case when Android kills your app, just use the
DDMS view (as you said) and hit the red stop/kill button. This'll kill
your app's process. Then restart your app and see what happens.





--



Other Threads

1. Video play error

Hi to all

     I am playing 2 videos(.mpg4) at time... Some times its works
fine, But some times give
error like "Cannot Play the Video" Can any One tell me Why its
Happens...?

Thank You
Nithin N V
--~--~---------~--~----~------------~-------~--~----~

2. Content Provider notifications?

Anyone?



--~--~---------~--~----~------------~-------~--~----~

3. Get Assisted GPS server address from device

4. How can I style a button widget.

5. PV software encoder with QVGA resolution

6. Reflection fails on large class

7. How does HierarchyViewer works ??