Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can't do that as it is. What wou can do is add an extra Activity with a CATEGORY_HOME in the intent filter and it will appear as a separate app on Android's launcher:</p> <pre><code>&lt;intent-filter&gt; &lt;category android:name="android.intent.category.DEFAULT" /&gt; &lt;category android:name="android.intent.category.HOME" /&gt; &lt;/intent-filter&gt; </code></pre> <p>You would have to change the icon and label properties of the activity for it to have a different icon and name as well :)</p> <p><strong>UPDATE:</strong></p> <p>The format I was using for the intent filter wasn't correct. This is how the activities would have to be declared inside the application tag in the manifest:</p> <pre><code>&lt;activity android:name=".MainActivity" android:icon="@drawable/main_icon" android:label="@string/main_app_name"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;activity android:name=".SecondaryActivity" android:icon="@drawable/secondary_icon" android:label="@string/secondary_app_name"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; </code></pre> <p>If you want to include an Activity inside a library project you will have include the full path to that given Activity.</p> <p>One interesting approach would be to create both apps like library projects and then compound them into one. Bear in mind that you can't package library projects into apk so you would have to do separate projects if you want to create individual products.</p> <p>Here is some info about library projects: <a href="http://www.vogella.com/articles/AndroidLibraryProjects/article.html" rel="nofollow">http://www.vogella.com/articles/AndroidLibraryProjects/article.html</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload