One thing that may be pertinent is that the two apps are in different packages... I don't think that this should make a difference, but just thought I would point this out in case I am mistaken.
Thanks, Justin On Sep 28, 7:51 am, Tikoze <[email protected]> wrote: > Anyone have any ideas? > > On Sep 26, 8:44 am, Justin Anderson <[email protected]> wrote: > > > *> "That is definitely a puzzling behaviour, I suspect the fact you have no > > content view is probably the cause."* > > > I tried giving it a LinearLayout but the result was the same. > > > *> "Is there any reason why you need the second activity? "* > > > I'm doing this as a way to have both free and paid (or rather, donate) > > versions of the same app using the same code-base. My second activity > > returns an MD5 hash of a secret key. When the first activity gets the > > result back it checks it to see if it should run in free mode or paid > > (donate) mode. I got the idea from the Documents to Go app. Of course, I > > have no idea how they accomplished this feat... I'm just trying to get the > > same results. If there is a better way to do something like this I would be > > willing to try that. > > > *> "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."* > > > While this is probably true in most cases, my activity uses the NoDisplay > > theme, which, according to the docs is for Activities that don't display a > > UI because they finish themselves before being resumed. This is exactly > > what my second activity does. As an aside, I have also tried this without > > having that theme and the results are the same. > > > Thanks, > > Justin > > > ---------------------------------------------------------------------- > > There are only 10 types of people in the world... > > Those who know binary and those who don't. > > ---------------------------------------------------------------------- > > > On Sat, Sep 26, 2009 at 4:34 AM, Sean Hodges > > <[email protected]>wrote: > > > > 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 -~----------~----~----~----~------~----~------~--~---

