|
21 | 21 | <uses-permission android:name="android.permission.INTERNET" /> |
22 | 22 |
|
23 | 23 | <!-- Permissions required by the sync adapter --> |
24 | | - <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" /> |
25 | | - <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" /> |
26 | | - <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" /> |
| 24 | + <uses-permission |
| 25 | + android:name="android.permission.READ_SYNC_SETTINGS"/> |
| 26 | + <uses-permission |
| 27 | + android:name="android.permission.WRITE_SYNC_SETTINGS"/> |
| 28 | + <uses-permission |
| 29 | + android:name="android.permission.AUTHENTICATE_ACCOUNTS"/> |
27 | 30 |
|
28 | 31 | <!-- Permissions required to make our UI more friendly --> |
29 | | - <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
| 32 | + <uses-permission |
| 33 | + android:name="android.permission.ACCESS_NETWORK_STATE" /> |
30 | 34 |
|
31 | 35 | <!-- Permissions required for Google Cloud Messaging --> |
32 | 36 | <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> |
33 | | - <permission |
34 | | - android:name="com.example.android.sunshine.app.permission.C2D_MESSAGE" |
| 37 | + <permission android:name="com.example.android.sunshine.app.permission.C2D_MESSAGE" |
35 | 38 | android:protectionLevel="signature" /> |
36 | 39 | <uses-permission android:name="com.example.android.sunshine.app.permission.C2D_MESSAGE" /> |
37 | 40 |
|
|
43 | 46 | android:supportsRtl="true"> |
44 | 47 | <activity |
45 | 48 | android:name=".MainActivity" |
46 | | - android:label="@string/app_name" |
47 | | - android:theme="@style/ForecastTheme" > |
| 49 | + android:theme="@style/ForecastTheme" |
| 50 | + android:label="@string/app_name" > |
48 | 51 | <intent-filter> |
49 | 52 | <action android:name="android.intent.action.MAIN" /> |
50 | 53 |
|
|
63 | 66 | android:name=".SettingsActivity" |
64 | 67 | android:label="@string/title_activity_settings" |
65 | 68 | android:parentActivityName=".MainActivity" |
66 | | - android:theme="@style/SettingsTheme" > |
| 69 | + android:theme="@style/SettingsTheme"> |
67 | 70 | <meta-data |
68 | 71 | android:name="android.support.PARENT_ACTIVITY" |
69 | 72 | android:value="com.example.android.sunshine.app.MainActivity" /> |
70 | 73 | </activity> |
71 | | - |
72 | 74 | <provider |
73 | | - android:name=".data.WeatherProvider" |
74 | 75 | android:authorities="@string/content_authority" |
| 76 | + android:name=".data.WeatherProvider" |
75 | 77 | android:exported="false" |
76 | 78 | android:syncable="true" /> |
77 | 79 |
|
78 | 80 | <!-- SyncAdapter's dummy authentication service --> |
79 | | - <service android:name=".sync.SunshineAuthenticatorService" > |
| 81 | + <service android:name=".sync.SunshineAuthenticatorService"> |
80 | 82 | <intent-filter> |
81 | 83 | <action android:name="android.accounts.AccountAuthenticator" /> |
82 | 84 | </intent-filter> |
83 | | - |
84 | 85 | <meta-data |
85 | 86 | android:name="android.accounts.AccountAuthenticator" |
86 | 87 | android:resource="@xml/authenticator" /> |
|
89 | 90 | <!-- The SyncAdapter service --> |
90 | 91 | <service |
91 | 92 | android:name=".sync.SunshineSyncService" |
92 | | - android:exported="true" > |
| 93 | + android:exported="true" |
| 94 | + > |
93 | 95 | <intent-filter> |
94 | 96 | <action android:name="android.content.SyncAdapter" /> |
95 | 97 | </intent-filter> |
96 | | - |
97 | 98 | <meta-data |
98 | 99 | android:name="android.content.SyncAdapter" |
99 | 100 | android:resource="@xml/syncadapter" /> |
100 | 101 | </service> |
101 | 102 |
|
102 | | - <!-- GCM receiver --> |
103 | | - <receiver |
104 | | - android:name=".GcmBroadcastReceiver" |
105 | | - android:permission="com.google.android.c2dm.permission.SEND" > |
106 | | - <intent-filter> |
107 | | - <action android:name="com.google.android.c2dm.intent.RECEIVE" /> |
108 | | - <category android:name="com.example.android.sunshine.app" /> |
109 | | - </intent-filter> |
110 | | - </receiver> |
| 103 | + <!-- GCM receiver - Commented out until we write the class --> |
| 104 | + <!--<receiver--> |
| 105 | + <!--android:name=".GcmBroadcastReceiver"--> |
| 106 | + <!--android:permission="com.google.android.c2dm.permission.SEND" >--> |
| 107 | + <!--<intent-filter>--> |
| 108 | + <!--<action android:name="com.google.android.c2dm.intent.RECEIVE" />--> |
| 109 | + <!--<category android:name="com.example.android.sunshine.app" />--> |
| 110 | + <!--</intent-filter>--> |
| 111 | + <!--</receiver>--> |
111 | 112 | </application> |
112 | 113 |
|
113 | 114 | </manifest> |
0 commit comments