Reputation: 25
My android project tree looks like that... (I owner too "low reputation to post image", so...)
----------------------------
...
src
AppStart.java
DBHelper.java
SecureMessagesActivity.java
Settings.java
SmsReceiver.java
...
----------------------------
When I install app to real device, I can see two icons names 1. SMS Cipher (project name) 2. Setting (click on this icon open settings.java)
It's unacceptably... How can I avoid it? I just want that 1 icon was created.
Thanks.
Upvotes: 1
Views: 73
Reputation: 2311
It seems You have added <action android:name="android.intent.action.MAIN" />
in two activities so this problem occurs.I would recommend you to add intent filter action main in only launcher activity which will the 1st activity of your App.
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
Don't use Action MAIN
in more than one activity
Upvotes: 2