Android application with two entry points. How to know which is clicked by user on onCreate() of application object

I have a android application with two entry points. i.e. I have two icon on home screen but internally they are single application.

I want to know how i can set some parameter in Application object depending on the icon click.

More precisely, I want to maintain a scope variable which will keep information of the scope of my application based on what icon user has clicked. Based on this my common screens will behave differently for both of this entry points.

Answers


Application has getApplicationInfo() and ApplicationInfo has loadIcon(PackageManager pm) - Retrieve the current graphical icon associated with this item. Is it enough?

I think also that getPackageName() could be used, too, but the author should use different names for both variants of application.


Need Your Help

Starting of Tomcat failed from Netbeans

java apache tomcat netbeans

I have problem with starting Apache Tomcat 6 from Netbeans IDE 7.4 (on 7.3 version I had the same troubles. Other people mentioned that this problem exist also in other versions, like 8.0 etc).

Is the "_" prefix reserved for MovieClip names?

flash naming-conventions actionscript-2 movieclip

Is it possible to use the "_" underscore prefix for your own MovieClip names? (AS2)