user942821
user942821

Reputation:

App is not shown in launcher for 4.0.3

I can install my app on:

And it's shown in launcher and widgets manager.

But after installing it on emulator 4.0.3, it is not shown in launcher and widgets manager.

Here is manifest:

<uses-sdk android:minSdkVersion="4" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" >
    <activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.NoDisplay" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <receiver android:name=".handlers.MyWidgetProvider" >
        <intent-filter>
            <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
        </intent-filter>

        <meta-data
            android:name="android.appwidget.provider"
            android:resource="@xml/my_widget_info" />
    </receiver>
</application>

Would you help me?

Thanks,

Edited:

This is such a stupid question. I tried to scroll the app list vertically. But in 4.0.3, the list is horizontal.

:-)

So there is no problem with my app. I'm sorry...

Upvotes: 2

Views: 1219

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007296

Your app widget will not show up in the widgets list until the user runs one of your activities. This behavior is new to Android 3.1.

There is nothing obviously wrong with the activity, though you might try removing Theme.NoDisplay and see if the behavior changes.

Upvotes: 1

Related Questions