views:

16

answers:

1

I want to develop a application with widget. Now i only can find the applicaion in widget but cannot find the application in "all programs"

Thank you

my AndroidMainfest.xml

A: 

Ok you must have inside your Manifest.xml

<application android:icon="@drawable/icon" android:label="@string/app_name">
  <activity android:name=".GrupoReformaNews"
              android:label="@string/app_name"
              android:screenOrientation="portrait">

this in intent filter for your application

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

this in intent filter for your Widget

        <receiver android:name="GR_Widget">
            <intent-filter>
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
            </intent-filter>
            <meta-data android:name="android.appwidget.provider"
                android:resource="@xml/imageswidget_info" />
        </receiver>
...
...
...
</application>

if you still having problems, post your manifest.xml

Jorgesys