Mark! You are a genius! It did exactly what I need. I'll put it as a
tip into my blog (http://dev.bostone.us) with due diligence, it's a
great testing tool

On Jul 30, 3:09 pm, Mark Murphy <[email protected]> wrote:
> droidin.net wrote:
> > For the test purposes I need to terminate my app from within my code.
> > Doing Activity#finish() doesn't do it. Doing
> > Activity#getMainLooper#quit fails with exception. Here's sequence of
> > steps I'm trying to do:
>
> > 1. Activity calls another application
> > 2. Original application terminates (basically I'm trying to simulate
> > very busy phone)
> > 3. 2nd app calls the original app
> > 4. Original app restarts from scratch and processes callback
>
> > Any hints for achieving step #2 are much appreciated
>
> System.exit() should work. I don't necessarily recommend it for
> production apps, but for a simulation in a test case it is (probably) OK.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, $35/Year
--~--~---------~--~----~------------~-------~--~----~
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