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. Render a PDF in a View

Hi at all,

anyone knows how, if it is possibile, to draw an PDF in a View ?

PDF file could be an local file or a file downloaded over internet.

I searched over internet about this question but I have not an
detailed solution of this problem or a good example.

Thanks in advance.


-- 

2. Motorola xoom 7.2jt

Tapi di illinois ya om....huehuehue......




syd
ptk

-- 
===============
"

-- 
===============
"

3. [isat-android] WTA : Masalah pada Angry Birds

4. Video Teaser Samsung Galaxy S2

5. (WTShare) UltimateDroid 3.0.0 RC 7 phone

6. Terbukti three makan pulsa setelah perpanjangan

7. Paging bro Yopie