That is definitely a puzzling behaviour, I suspect the fact you have no content view is probably the cause.
Is there any reason why you need the second activity? Activities are supposed to be used to display a new screen, processing data in the background is usually performed in an ASyncTask or similar runnable class. On Sep 26, 2009 8:45 AM, "MagouyaWare" <[email protected]> wrote: I have an activity that needs to start another activity in the onCreate method. The second activity doesn't have a UI, it just processes some data (very quickly) and returns it via setResult. The problem I am having is that it looks like the onActivityResult method from my first activity is called before the second activity has finished! I put in some Toast notifications to be sure, but the order that the notifications appear is as follows: - onCreate for Activity1 (just before calling startActivityForResult to launch Activity2) - onActivityResult for Activity1 - onCreate for Activity2 Has anyone else run into this problem? I have not been able to find anything about this issue on these forums or on google. Thanks in advance, Justin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

