android - Is there a way to distinguish if an app was launched from home screen shortcut or form the launcher app drawer? -


i'm trying track applications usage on device.

is there way know if app launched home screen shortcut or launcher?

in logcat see there activitymanager log each time app starts, can't tell if there's difference between shortcut launch , app drawer launch.

thanks

i don't think can tell difference necessarily. if you created shortcut, might able tuck or in intent distinguish cases, if user creates shortcut on own, there no difference.

bear in mind both shortcuts , "app drawers" constructs of same home screen application, , home screen applications may not have shortcuts or may use substantially different "app drawer".


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -