Java Code Examples for android.widget.RemoteViewsService

The following are top voted examples for showing how to use android.widget.RemoteViewsService. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: yabaking   File: RemoteIngredientsListAdapterService.java   View source code 5 votes vote down vote up
@Override
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent) {
    if (intent != null) {
        return new RemoteIngredientsListViewsFactory(getApplicationContext());
    }
    return null;
}
 
Example 2
Project: News24x7-news-from-every-part-of-the-world   File: NewsWidgetService.java   View source code 4 votes vote down vote up
@Override
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent) {
    return (new NewsWidgetViewsFactory(this.getApplicationContext(), intent));
}
 
Example 3
Project: stock-hawk-app   File: StockWidgetService.java   View source code 4 votes vote down vote up
@Override
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent) {
    return new StockWidgetFactory(getApplicationContext(), intent);
}
 
Example 4
Project: WorkflowyList   File: WFListViewService.java   View source code 4 votes vote down vote up
@Override
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent) {
    return new WFListViewFactory(this.getApplicationContext(), intent);
}
 
Example 5
Project: stock-hawk   File: StockWidgetRemoteViewsService.java   View source code 4 votes vote down vote up
@Override
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent) {
    return new StockDataProvider(this, intent);
}
 
Example 6
Project: FMTech   File: RecommendationsViewService.java   View source code 4 votes vote down vote up
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent paramIntent)
{
  return new RecommendationsViewFactory(this, paramIntent.getIntExtra("appWidgetId", 0), paramIntent.getIntExtra("RecWidget.heightLandscape", 0), paramIntent.getIntExtra("RecWidget.heightPortrait", 0));
}
 
Example 7
Project: FMTech   File: LocationsWidgetStackService.java   View source code 4 votes vote down vote up
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent paramIntent)
{
  return new eaw(getApplicationContext(), paramIntent);
}
 
Example 8
Project: Slide   File: ListViewWidgetService.java   View source code 4 votes vote down vote up
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent) {
    return new ListViewRemoteViewsFactory(this.getApplicationContext(), intent, "android",
            intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, 0));
}
 
Example 9
Project: JWP   File: class_widget_service.java   View source code 4 votes vote down vote up
@Override
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent) {
    return new class_widget_factory(getApplicationContext());
}
 
Example 10
Project: Perfect-Day   File: TodayWidgetService.java   View source code 2 votes vote down vote up
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent) {

        return new ListViewRemoteViewsFactory(this.getApplicationContext(), intent);

    }