3

After developing for years on iOS I am beginning android development at the moment . Now I am starting to release my first app. I installed my debug signed APK file on a phone like this:

$ adb -s HT35HW917059 -d install app/app-***-debug.apk 

I can start the app using adb without problems (the app launches):

$ adb -s HT35HW917059 shell am start -n ...

However, I cannot find an app icon on my phone, to start the app? What am I missing?

Erik
  • 11,944
  • 18
  • 87
  • 126

1 Answers1

4

Check in your AndroidManifest.xml that your activity has the correct Intent filters

<activity android:name="MainActivity">
    <!-- This activity is the main entry, should appear in app launcher -->
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>
mach
  • 8,315
  • 3
  • 33
  • 51
  • I am sure he has this, he wants to start via command line using adb. – Jared Burrows Mar 19 '15 at 13:02
  • @JaredBurrows Are you sure? He ends the question with "However, I cannot find an app icon on my phone, to start the app? What am I missing?" – mach Mar 19 '15 at 13:03
  • He would have to had gone to the `AndroidManifest.xml` and actually delete this from the `MainActivity`. I'll ask him to show it. – Jared Burrows Mar 19 '15 at 13:06
  • Now you changed the title of the question to match your answer. I have never seen anyone do that before. You should have asked him first. – Jared Burrows Mar 19 '15 at 13:09
  • The first title was so misleading that at least two persons misread the question. He is able to launch the app from ADB but not from the launcher. Doesn't the edit clarify that? – mach Mar 19 '15 at 13:11
  • I am just saying, let's let him clarify first so it is not confusing. – Jared Burrows Mar 19 '15 at 13:13
  • 1
    Actually that was the problem. Thanks! – Erik Mar 19 '15 at 13:25