Back to project page gizmooi.
The source code is released under:
GNU General Public License
If you think the Android project gizmooi 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.timvdalen.gizmooi; //from w w w .j a v a2 s . c o m import android.annotation.SuppressLint; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.Context; /** * Widget provider for Gizmooi */ public class GizmooiWidgetProvider extends AppWidgetProvider{ //The Android Lint doesn't detect that I check for the right build version before using function from level 17 @SuppressLint("NewApi") public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds){ final int N = appWidgetIds.length; //Loop through all widgets for(int i = 0; i < N; i++){ int appWidgetId = appWidgetIds[i]; //Start a Runnable to load a new Photo new Thread(new PhotoLoaderRunnable(context, appWidgetId, appWidgetManager)).start(); } } }