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 dialog.
On Tuesday, May 7, 2013 2:56:09 PM UTC+3, MathieuB wrote: > > Hi! > > In my app, I have a loader that calls a webservice and gets a result from > it. Based on that result being positive, it would show an alertdialog to > tell the user there is an update available for some files (that are parts > of my app). > > Problem is : I'd like to start that loader on app launch, and deliver the > alertdialog anywhere in the app, whatever activity the user is in. > > I searched for a solution. Thought about putting the loader work in the > Application class, but really not sure it's a viable solution. > > TL;DR : Do you have any idea how to do background process on app launch, > that would delivers an alertdialog independently of the activity user's in? > -- -- 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.

