[android-developers] Re: starting Activity with result calls onActivityResult from calling Activty

2011-05-13 Thread Nicholas Johnson
Are your activities run in "singleTask" launch mode? Nick -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-develo

[android-developers] Re: starting Activity with result calls onActivityResult from calling Activty

2011-05-13 Thread Nicholas Johnson
Also, what type of activities are you launching? That is, are you opening a web browser, or are these activities that you implemented? And, what result code is returned in onActivityResult? Is it RESULT_CANCELED? Nick -- You received this message because you are subscribed to the Google Group

[android-developers] Re: starting Activity with result calls onActivityResult from calling Activty

2011-05-13 Thread Wall-E
OK, so it was that the launchMode="singleInstance" and it was my fault for not clearing it from the right Activity in the manifest. Thanks for the help Nicholas. On May 13, 11:37 am, Nicholas Johnson wrote: > Also, what type of activities are you launching? That is, are you opening a > web brows

[android-developers] Re: starting Activity with result calls onActivityResult from calling Activty

2011-05-13 Thread Wall-E
Hey Nicholas, The launch mode for some of my Activities are "SingleInstance". My Activities are my own, custom activities. They are being called like this: Intent intent = new Intent(CallingActivity.this, SetResultActivity.class); startActivityForResult(intent); The result code is RESULT_CANCE

[android-developers] Re: starting Activity with result calls onActivityResult from calling Activty

2011-05-13 Thread Nicholas Johnson
> > startActivityForResult(intent); Stupid question here, but you're calling startActivityForResult(Intent, int), correct? What values are you using for your requestCodes? Are they >= 0? Nick -- You received this message because you are subscribed to the Google Groups "Android Developers"

Re: [android-developers] Re: starting Activity with result calls onActivityResult from calling Activty

2011-05-13 Thread Justin Anderson
Take a look at the docs for startActivityForResult: http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int) This mentions a specific case with the singleTask launch mode that seems to be exactly what you are experiencing. My guess is th

Re: [android-developers] Re: starting Activity with result calls onActivityResult from calling Activty

2011-05-13 Thread Dianne Hackborn
Don't use singleInstance. Really. :) Hm, I was going to point to the documentation where it says "don't use singleInstance" but that seems to have disappeared. I'll put that back. On Fri, May 13, 2011 at 9:02 AM, Wall-E wrote: > OK, so it was that the launchMode="singleInstance" and it was my

Re: [android-developers] Re: starting Activity with result calls onActivityResult from calling Activty

2011-05-13 Thread Justin Anderson
The Dev Guide link I posted doesn't say "don't use it" but it is pretty clear that it highly recommends not using it... Is that what you were referring to Dianne? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, May 13, 2011 at 10:09 AM, Dianne Hackb