dude... i think you're not getting what i'm telling you.
onLoadFinished() should call "startActivity(new
Intent(DialogActivity.class, ));" 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)
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 th
I'm not sure you fully understand what my solution is...
Instead of figuring out ways how to get Activity B (or any of your other
existing activities) to show the dialog (it can be done of course) i'm
suggesting instead to show it in a whole new activity, Activity C.
The idea behind is it that i
Thanks for the reply!
That works, indeed, but what I really wanted to achieve was to show the
alertDialog even if the user is not in the launcher activity anymore.
For example :
In home activity (Activity A), I start the loader. The onLoadFinished is
not yet called and the user goes in anoth
Launch it from where ever you want (better though to use the launcher
activity) then on the "onPostExecute" launch an activity that just shows a
dialog (or is a dialog). You can style the activity to either appear as
dialog or just have it transparent (transparent background) and use regular
di
5 matches
Mail list logo