dude... i think you're not getting what i'm telling you. onLoadFinished() should call "startActivity(new Intent(DialogActivity.class, <context>));" DialogActivity is NOT "Activity B", its a whole NEW one that you dont have now.
then the onCreate of DialogActivity just does "showDialog(INT_FOR_DIALOG);" The whole purpose of that activity is that no matter where you are, by launching it during onLoadFinished it will become the top activity so it can show the user what ever you want. On Tuesday, May 7, 2013 6:32:44 PM UTC+3, MathieuB wrote: > > We misunderstood! > > I understood your solution and used it. I launch an activity as a dialog > on onLoadFinished. But the loader is initialized in my main activity. So if > I goes to another Activity (eg Activity B), and the onLoadFinished is not > called yet, then the dialog will not appear because the loader was not > finished. Well, that's what my tests show. > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

