Re: [android-developers] Re: onActivityResult is called immediately after startActivityForResult

2012-09-04 Thread Justin Anderson
Try reading the documentation for the method you are using... It might help: http://developer.android.com/reference/android/app/Activity.html#startActivityForResult%28android.content.Intent,%20int%29 Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, S

[android-developers] Re: onActivityResult is called immediately after startActivityForResult

2012-09-02 Thread Mike Fulton
On Wednesday, December 23, 2009 6:35:25 AM UTC-8, Lance Nanek wrote: > > Changing the launch mode fixed it. > Sorry to necro an old thread and maybe you won't even see this, but I'm having a similar problem... changing the launch mode *HOW* ? Mike -- You received this message because

Re: [android-developers] Re: onActivityResult is called immediately after startActivityForResult

2010-02-13 Thread Dianne Hackborn
The action or category (or data or mime type) in the launching intent doesn't matter at all for what will happen with the result. When you are in your second activity, you can try "adb shell dumpsys activity" to see the current activity stacks (they are the first thing printed; there is a lot more

[android-developers] Re: onActivityResult is called immediately after startActivityForResult

2010-02-13 Thread WirelSys
I have problem too while attempting to return a result from my child activity. From the logs it appears that my sub-activity does execute setResult() and finish(). However, it still fails to execute onActivityResult in the main (calling) activity. --

[android-developers] Re: onActivityResult is called immediately after startActivityForResult

2010-01-19 Thread Pete Slater
Could you post your exact configuration from your AndroidManifest for the activities that you are calling from and returning a result from? The reason I ask is that I am struggling with a couple of activities in my app. One should be calling the other using StartActivityForResult but I am getting

[android-developers] Re: onActivityResult is called immediately after startActivityForResult

2009-12-23 Thread ryan
Yeah I just found this out myself and came to post. Thanks for the added input! On Dec 23, 6:35 am, Lance Nanek wrote: > I've seen onActivityResult get called immediately once before as well. > The activity getting started by startActivityForResult had launchMode > set to singleTask in the manife

[android-developers] Re: onActivityResult is called immediately after startActivityForResult

2009-12-23 Thread Lance Nanek
I've seen onActivityResult get called immediately once before as well. The activity getting started by startActivityForResult had launchMode set to singleTask in the manifest. There was a message in the logs from the ActivityManager saying: "Activity is launching as a new task, so cancelling activi

[android-developers] Re: onActivityResult is called immediately after startActivityForResult

2009-12-23 Thread Nithin
This may happen because, in onCreate() on subActivity, are you putting any finish() call. > if (data.equals(null)) { alert("returned null"); } You can't check like this. You can check in this way, if(data == null); Nithin On Dec 23, 6:35 pm, ryan wrote: > Hello, > > Im trying to do a bas