Wednesday 24 April 2013

Android: Widget and APP in the same APK File


 <application
        android:allowBackup="true"
        android:icon="@drawable/ic_action_emo_laugh"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <receiver android:name="MainActivity" >
            <intent-filter>
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
            </intent-filter>

            <meta-data
                android:name="android.appwidget.provider"
                android:resource="@xml/hello_widget_provider" />
        </receiver>
        <receiver android:name="MainActivityProvider" >
            <intent-filter>
                <action android:name="CHANGE_TEXT" />
            </intent-filter>

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

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

No comments:

Post a Comment