Reputation: 793
I followed the introductory tutorial on creating my first android app. However, when I run the emulator I don't see my app icon anywhere so I can't test it.
Here is my AndroidManifest.xml file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.me.learning">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name="com.example.me.learning.MyActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.example.me.learning.DisplayMessageActivity"
android:label="@string/title_activity_display_message"
android:parentActivityName="com.example.me.learning.MyActivity"
android:theme="@style/AppTheme.NoActionBar">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.example.me.learning.MyActivity" />
</activity>
</application>
</manifest>
Here is the console output for the AVD:
Hax is enabled
Hax ram_size 0x60000000
HAX is working and emulator runs in fast virt mode.
console on port 5554, ADB on port 5555
Console for the app:
03/10 16:18:36: Launching app
So both the avd and the app seem to load okay, but I don't see app anywhere in the emulator. What am I missing?
The app doesn't show up.
Upvotes: 3
Views: 23301
Reputation: 1
Run the apk file to install directly, drag the file from a folder in your pc to the emulator
Upvotes: 0
Reputation: 1254
I just met the same problem. I thought you should figure out all the red highlighted problems showed in the message window.
Then it will work.
Good luck!
Upvotes: 0
Reputation: 11
I had this problem as well! Here's the way I fixed it:
Upvotes: 1
Reputation: 3
I too faced same issue and i found that i had some red color underlined errors that are not compatible , i removed them and ran it once again,it worked fine.
Upvotes: 0
Reputation: 7479
When you click Run (The little green arrow in the toolbar at the top, or keyboard shortcut: SHIFT+F10
), you should be presented with a dialog box that asks you WHAT device you wanna run your app on. It won't ask you WHAT you want to run, if that was your concern.
From that dialog, just select Launch emulator and click OK.
Upvotes: 1