android.widget.RemoteViewsService Java Examples
The following examples show how to use
android.widget.RemoteViewsService.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ListRemoteViewsFactory.java From OmniList with GNU Affero General Public License v3.0 | 4 votes |
ListRemoteViewsFactory(RemoteViewsService remoteViewsService, Application app, Intent intent) { this.app = (PalmApp) app; appWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID); sharedPreferences = app.getSharedPreferences(Constants.PREFS_NAME, Context.MODE_MULTI_PROCESS); sharedPreferences.registerOnSharedPreferenceChangeListener(this); }
Example #2
Source File: ListViewWidgetService.java From Slide with GNU General Public License v3.0 | 4 votes |
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent) { return new ListViewRemoteViewsFactory(this.getApplicationContext(), intent, "android", intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, 0)); }