Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I start my app from my other app?
    text
    copied!<p>How do I start my app from my other app? (they will not be package together)</p> <p>--update </p> <p>Manifest of the second app:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.helloandroid" android:versionCode="1" android:versionName="1.0"&gt; &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt; &lt;activity android:name=".HelloAndroid" android:label="@string/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;category android:name="android.intent.category.HOME"/&gt; &lt;category android:name="android.intent.category.DEFAULT"/&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;activity android:name=".HelloAndroid"&gt; &lt;intent-filter&gt; &lt;action android:name="com.example.helloandroid.HelloAndroid" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;/application&gt; &lt;/manifest&gt; </code></pre> <p>I calling it with:</p> <pre><code>startActivity(new Intent("com.example.helloandroid.HelloAndroid")); </code></pre> <p>and it throws:</p> <pre><code>07-16 15:11:01.455: ERROR/Desktop(610): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.example.helloandroid.HelloAndroid } </code></pre> <p>Ralated:<br> <a href="https://stackoverflow.com/questions/1605074/how-to-launch-android-applications-from-another-application">How to launch android applications from another application</a></p>
 

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