I created an Android application and published it on the Android Market.
When I upgrade to higher version, then do开发者_高级运维 update to my phone, there are now two application icons for my application.
Why does this happen?
Applications are identified using package name. You must have used 2 different package name for both applications.
or 2 different entry points in your manifest in that case check whetehr you have specified launcher for 2 activities in your application as below. if so only allow the entery point of your application to have launcher.
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
精彩评论