[android-developers] Re: How do know when user launches application
When the launcher is clicked, the current activity is always brought up if it exists. So if you wanted to return to the parent activity you would have to either finish the other activities on the stack or relaunch the original activity. I can determine this by simply setting a boolean when your app is paused/resumed etc. Personally, if your app tried to play a video every time I opened it, regardless of whether or not I was in a different sub activity, I would uninstall your app very fast. --- Creator of My College Life http://mycollegelife.org On Apr 8, 11:07 am, Ferm ras...@gmail.com wrote: I want to play a video when the main activity launches from the appicon. Application.onCreate() is not always called and Activity.onResume/ onCreate is called to many times (e.g. when user goes back from child activity). How can I do this? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: How do know when user launches application
Forget about the video, I want to hook into when the user pushes my app icon, i.e. I want to know each time that the user is expecting the app to start. On Apr 8, 7:49 pm, theSmith chris.smith...@gmail.com wrote: When the launcher is clicked, the current activity is always brought up if it exists. So if you wanted to return to the parent activity you would have to either finish the other activities on the stack or relaunch the original activity. I can determine this by simply setting a boolean when your app is paused/resumed etc. Personally, if your app tried to play a video every time I opened it, regardless of whether or not I was in a different sub activity, I would uninstall your app very fast. --- Creator of My College Lifehttp://mycollegelife.org On Apr 8, 11:07 am, Ferm ras...@gmail.com wrote: I want to play a video when the main activity launches from the appicon. Application.onCreate() is not always called and Activity.onResume/ onCreate is called to many times (e.g. when user goes back from child activity). How can I do this? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
Re: [android-developers] Re: How do know when user launches application
On Thu, Apr 8, 2010 at 2:07 PM, Ferm ras...@gmail.com wrote: I want to hook into when the user pushes my app icon I don't think there's a way to distinguish this ... I want to know each time that the user is expecting the app to start. That's pretty much what onCreate is for ... if you explain what you're trying to do during your app's life cycle, maybe that will make things clearer. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en