acrichm
acrichm

Reputation: 177

Android apk: install emulator then device

Okay so i have been working on this app for a couple months now not really sure what i have done... but before when i would run the app from eclipse to the emulator it would auto open the application when it is finished loading it.. now it doesn't,, then after i signed the app and put the apk file onto my sd card and then installed it, it shows that it has been installed but doesn't show up in the app drawer and i can't run in from the setting>manage apps.... anyone have an idea what i might of done that has messed it up?

UPDATE 12-11-2011

after looking into the manifest i found the simple problem that was like a thorn to me, this is what i had that was causing the error:

<activity android:name=".Splash" android:label="@string/app_name" >
    <intent-filter >
        <action android:name="android.intent.action.SPLASH" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

<activity android:name=".Main" android:label="@string/app_name" >
    <intent-filter >
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

android:name=".Splash" intent should of been android:name="android.intent.action.MAIN"

then changed my class Main to MainScreen that intent then should of been android:name="android.intent.action.MAINSCREEN" so i wouldn't confuse myself (hopefully) anymore on it

Upvotes: 0

Views: 388

Answers (1)

Reed
Reed

Reputation: 14984

In your manifest.xml file there should be one activity similar to this:

<activity android:name=".MainActivity"
          android:label="My Awesome App">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

The notable part is the intent-filter. If you don't have that setup correctly, then it will not show in the app drawer. My guess is that you removed that by accident somehow...

Upvotes: 1

Related Questions