Take a look at Android lifecycles... Unless you are using a service, your app stops running when it is no longer in the foreground.
http://developer.android.com/guide/topics/fundamentals.html#lcycles Thanks, Justin ---------------------------------------------------------------------- There are only 10 types of people in the world... Those who know binary and those who don't. ---------------------------------------------------------------------- On Fri, Nov 13, 2009 at 12:51 AM, android_newbie <[email protected]>wrote: > Hi, > > I created two applications that need to run simultaneously. Both > applications implement the LocationListener in order to detect if > someone is moving with the phone and both applications post to the > same php file. I'm seeing that when I run the two applications, one > of the applications stops running without error. My assumption is > that a conflict must occur between the two apps posting to the php > file. However, from my understanding, if I use os.AsyncTask (I > haven't found a good example) or call httpclient.execute with a > response handler, this should eliminate some of the issues. > > It appears that I'm still having the same problem. IE, I go back to > one of the applications (which essentially just lists latitude and > longitude and I see that the application has stopped. > > In both apps, I'm posting to the php client as follows: > > HttpClient httpclient = new DefaultHttpClient(); > HttpPost httppost = new > HttpPost(queryString); > > log("executing request" + > httppost.getURI()); > > // Create a response handler > ResponseHandler<String> responseHandler = > new > BasicResponseHandler(); > String responseBody = > httpclient.execute(httppost, > responseHandler); > // I've confirmed that the > responseBody is passing back what's expected > // shut down the connection manager to ensure > // immediate deallocation of all system resources > httpclient.getConnectionManager().shutdown(); > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-beginners%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en

