Jan-Felix Schmakeit | 2989852 | 2014-09-26 14:04:31 +1000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | Copyright 2013 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | package="com.example.android.widgetdata" |
| 19 | android:versionCode="1" |
| 20 | android:versionName="1.0"> |
| 21 | |
| 22 | <uses-sdk android:minSdkVersion="4" |
| 23 | android:targetSdkVersion="20" /> |
| 24 | |
| 25 | <application android:allowBackup="true" |
| 26 | android:label="@string/app_name" |
| 27 | android:icon="@drawable/ic_launcher" |
| 28 | android:theme="@style/AppTheme"> |
| 29 | |
| 30 | <!-- The widget provider --> |
| 31 | <receiver android:name="WeatherWidgetProvider"> |
| 32 | <intent-filter> |
| 33 | <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> |
| 34 | </intent-filter> |
| 35 | <!-- This specifies the widget provider info --> |
| 36 | <meta-data android:name="android.appwidget.provider" |
| 37 | android:resource="@xml/widgetinfo" /> |
| 38 | </receiver> |
| 39 | |
| 40 | <!-- The service serving the RemoteViews to the collection widget --> |
| 41 | <service android:name="WeatherWidgetService" |
| 42 | android:permission="android.permission.BIND_REMOTEVIEWS" |
| 43 | android:exported="false" /> |
| 44 | |
| 45 | <!-- The content provider serving the (fake) weather data --> |
| 46 | <provider android:name="WeatherDataProvider" |
| 47 | android:authorities="com.example.android.widgetdata.provider" android:exported="true" /> |
| 48 | |
| 49 | <activity android:name=".MainActivity" |
| 50 | android:label="@string/app_name"> |
| 51 | <intent-filter> |
| 52 | <action android:name="android.intent.action.MAIN" /> |
| 53 | <category android:name="android.intent.category.LAUNCHER" /> |
| 54 | </intent-filter> |
| 55 | </activity> |
| 56 | </application> |
| 57 | |
| 58 | |
| 59 | </manifest> |