Open: launch clicking on icon, either in applications or on home. Doesn't 
this cover your case?

On Wednesday, August 22, 2012 2:04:59 PM UTC+2, RichardC wrote:
>
> I think you need to re-consider your definition of "open". I use 
> long-press-home 90% of the time to launch applications I use on a regular 
> basis.
>
> On Wednesday, August 22, 2012 12:33:29 PM UTC+1, user123 wrote:
>>
>> I want to detect each time the user opens the app, by tap on home / 
>> desktop icon. There seem not to be a straight forward way to do it. Found a 
>> few workarounds but nothing seems to be really reliable.
>>
>> Things like, extend application object and use method "onCreate()", but 
>> this is not what I need because it's not called always when the user taps 
>> on the app's icon (can be just brought from the background), and also the 
>> application may be destroyed and recreated while running. Then 
>> Application.onCreate() will also be called.
>>
>> There war also some approaches involving BroadcastReceiver and checking 
>> intent flags but everything seems to be also not quite reliable?
>>
>> I need this because I want to track with Google Analytics, when the user 
>> opens the app.
>>
>> Thanks
>>
>

-- 
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

Reply via email to