Example usage for android.appwidget AppWidgetManager EXTRA_CUSTOM_EXTRAS

List of usage examples for android.appwidget AppWidgetManager EXTRA_CUSTOM_EXTRAS

Introduction

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

Prototype

String EXTRA_CUSTOM_EXTRAS

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

Click Source Link

Document

An intent extra to pass to the AppWidget picker containing a java.util.List of android.os.Bundle 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);
}