Example usage for android.appwidget AppWidgetManager EXTRA_CUSTOM_INFO

List of usage examples for android.appwidget AppWidgetManager EXTRA_CUSTOM_INFO

Introduction

In this page you can find the example usage for android.appwidget AppWidgetManager EXTRA_CUSTOM_INFO.

Prototype

String EXTRA_CUSTOM_INFO

To view the source code for android.appwidget AppWidgetManager EXTRA_CUSTOM_INFO.

Click Source Link

Document

An intent extra to pass to the AppWidget picker containing a java.util.List of AppWidgetProviderInfo objects to mix in to the list of AppWidgets that are installed.

Usage

From source file:com.launcher.silverfish.HomeScreenFragment.java

private void addEmptyData(Intent pickIntent) {
    // This is needed work around some weird bug.
    // This will simply add some empty data to the intent.
    ArrayList customInfo = new ArrayList();
    pickIntent.putParcelableArrayListExtra(AppWidgetManager.EXTRA_CUSTOM_INFO, customInfo);
    ArrayList customExtras = new ArrayList();
    pickIntent.putParcelableArrayListExtra(AppWidgetManager.EXTRA_CUSTOM_EXTRAS, customExtras);
}