Back to project page Tacere.
The source code is released under:
MIT License
If you think the Android project Tacere listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * Copyright (c) 2014 Jonathan Nelson/*w ww . ja v a2s . c o m*/ * Released under the BSD license. For details see the COPYING file. */ package org.ciasaboark.tacere.widget.service; import android.appwidget.AppWidgetManager; import android.content.Intent; import android.widget.RemoteViewsService; import org.ciasaboark.tacere.widget.adapter.WidgetEventListAdapter; public class WidgetService extends RemoteViewsService { /* * So pretty simple just defining the Adapter of the listview * here Adapter is ListProvider * */ @Override public RemoteViewsFactory onGetViewFactory(Intent intent) { int appWidgetId = intent.getIntExtra( AppWidgetManager.EXTRA_APPWIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID); return (new WidgetEventListAdapter(this.getApplicationContext(), intent)); } }