tempomax
tempomax

Reputation: 793

Don't see my app when running Android Studio emulator

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>

I see the icons here: enter image description here

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?

Here is the screen: enter image description here

Here is the main home screen: enter image description here

The app doesn't show up.

Upvotes: 3

Views: 23301

Answers (5)

Run the apk file to install directly, drag the file from a folder in your pc to the emulator

Upvotes: 0

oscarz
oscarz

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

Olivia
Olivia

Reputation: 11

I had this problem as well! Here's the way I fixed it:

  1. Run the emulator
  2. Without closing the emulator, get to this screen and click on the button in the top left that looks like a returning green arrow coming out of a gray box. It should be above the stop button (red square). bottom left of android studio, click on run the the very bottom left and then click one of the little android logos to the left of the emulator run tab
  3. Select the running emulator in the pop up window

Upvotes: 1

kurella pushpak
kurella pushpak

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

Vucko
Vucko

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

Related Questions