我正在開發由不再與公司合作編寫的Android應用程序,並且不理解爲AppWidget更新創建接收器的目的是什麼。清單具有啓動應用程序時運行的主要活動。據我所知,appwidget從不使用,其代碼與應用程序的其餘部分是分開的。我無法分辨這是否是遺留的,可以刪除,還是仍在使用中。所有的教程和例子,我覺得解釋如何實現這一點,但沒有真正爲什麼一會,尤其是在這種情況下。從清單文件APPWIDGET_UPDATE接收器的用途
代碼:
<application
android:debuggable="true"
android:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@style/ConnectTheme" >
<activity
android:name="com.globalcrossing.connect.ConferenceListView"
android:label="@string/listTitle" >
<intent-filter android:label="@string/app_name" >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.globalcrossing.connect.Preferences"
android:label="@string/set_preferences" >
</activity>
<!-- Broadcast Receiver that will process AppWidget updates -->
<receiver
android:name="com.globalcrossing.connect.ConferenceWidget"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_provider" />
</receiver>
... more activities I understand, deleted for brevity
</application>
據我所知,主屏幕表示只是應用程序圖標,沒有更多 –
不客氣,我會在這種情況下刪除/清理我的意見。 – TronicZomB