Back to project page android_Findex.
The source code is released under:
Apache License
If you think the Android project android_Findex listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.lithidsw.findex.widget; /* w w w . java 2s .com*/ import android.appwidget.AppWidgetManager; import android.content.Intent; import android.os.Bundle; import android.widget.RemoteViewsService; public class WidgetService extends RemoteViewsService { @Override public RemoteViewsFactory onGetViewFactory(Intent intent) { Bundle extras = intent.getExtras(); int mAppWidgetId = 0; if (extras != null) { mAppWidgetId = extras.getInt( AppWidgetManager.EXTRA_APPWIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID); } return(new WidgetViews(this.getApplicationContext(), mAppWidgetId)); } }