Example usage for android.os Bundle putStringArray

List of usage examples for android.os Bundle putStringArray

Introduction

In this page you can find the example usage for android.os Bundle putStringArray.

Prototype

public void putStringArray(@Nullable String key, @Nullable String[] value) 

Source Link

Document

Inserts a String array value into the mapping of this Bundle, replacing any existing value for the given key.

Usage

From source file:com.granita.tasks.SyncSettingsActivity.java

/**
 * This function displays the list of providers which can be visible or hidden in {@link TaskListFragment}.
 *//* w w w  .  j ava 2s .  c  o  m*/
public void showVisibleListsFragment() {
    SettingsListFragment syncedListFragment = new SettingsListFragment();
    Bundle args = new Bundle();
    args.putStringArray(SettingsListFragment.LIST_STRING_PARAMS, new String[] { "1" });
    args.putInt(SettingsListFragment.LIST_FRAGMENT_LAYOUT, R.layout.fragment_visiblelist);
    args.putString(SettingsListFragment.LIST_SELECTION_ARGS, TaskContract.TaskLists.SYNC_ENABLED + "=?");
    args.putString(SettingsListFragment.COMPARE_COLUMN_NAME, TaskContract.TaskLists.VISIBLE);
    args.putBoolean(SettingsListFragment.LIST_ONDETACH_SAVE, true);
    syncedListFragment.setArguments(args);
    mManager.beginTransaction().replace(R.id.visible_task_list_fragment, syncedListFragment).commit();
    mCurrentFrag = syncedListFragment;
    showActionBarTitle(R.string.visible_task_lists);
}

From source file:com.granita.tasks.SyncSettingsActivity.java

/**
 * This function displays the list of providers which can be synced.
 *//*from   w  w  w.j  a  va2s  .  c  o  m*/
public void showSyncedListsFragment() {
    SettingsListFragment syncedListFragment = new SettingsListFragment();
    Bundle args = new Bundle();
    args.putStringArray(SettingsListFragment.LIST_STRING_PARAMS, null);
    args.putInt(SettingsListFragment.LIST_FRAGMENT_LAYOUT, R.layout.fragment_synced_task_list);
    args.putString(SettingsListFragment.LIST_SELECTION_ARGS, null);
    args.putString(SettingsListFragment.COMPARE_COLUMN_NAME, TaskContract.TaskLists.SYNC_ENABLED);
    args.putBoolean(SettingsListFragment.LIST_ONDETACH_SAVE, false);
    syncedListFragment.setArguments(args);
    mManager.beginTransaction().replace(R.id.visible_task_list_fragment, syncedListFragment).commit();
    mCurrentFrag = syncedListFragment;
    showActionBarTitle(R.string.synced_task_lists);
}

From source file:it.polimi.spf.app.fragments.profile.ProfileFieldsFragment.java

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putStringArray(EXTRA_FIELDS_TO_SHOW, ProfileField.toIdentifierList(mFieldsToShow));
}

From source file:com.z299studio.pb.SettingListDialog.java

@Override
public void onSaveInstanceState(Bundle outState) {
    outState.putStringArray("option_list", mOptions);
    outState.putString("option_title", mTitle);
    outState.putInt("option_selection", mSelection);
    super.onSaveInstanceState(outState);
}

From source file:ca.mudar.parkcatcher.ui.fragments.FavoritesFragment.java

public void refreshList() {
    Bundle args = new Bundle();
    args.putStringArray(Const.KEY_BUNDLE_CURSOR_SELECTION, getSelectionArgs());

    getLoaderManager().restartLoader(FavoritesQuery._TOKEN, args, this);
}

From source file:org.bwgz.quotation.activity.CursorLoaderManagerActivity.java

@Override
public int initLoader(CursorLoaderListener listener, Uri uri, String[] projection, String selection,
        String[] selectionArgs, String sortOrder) {
    //Log.d(TAG, String.format("onPickLoad - view: %s  uri: %s  projection: %s  selection: %s  selectionArgs: %s  String sortOrder: %s", view, uri, projection, selection, selectionArgs, sortOrder));

    Bundle bundle = new Bundle();
    bundle.putParcelable(LOADER_BUNDLE_URI, uri);
    bundle.putStringArray(LOADER_BUNDLE_PROJECTION, projection);
    bundle.putString(LOADER_BUNDLE_SELECTION, selection);
    bundle.putStringArray(LOADER_BUNDLE_SELECTION_ARGS, selectionArgs);
    bundle.putString(LOADER_BUNDLE_SORT_ORDER, sortOrder);

    return initLoader(listener, bundle);
}

From source file:ca.mudar.parkcatcher.ui.fragments.FavoritesFragment.java

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setListAdapter(null);//from   w ww. j a va  2  s. c  o m

    parkingApp = (ParkingApp) getActivity().getApplicationContext();

    mAdapter = new PostsCursorAdapter(getActivity(), R.layout.fragment_list_item_favorites, cursor,
            new String[] { Favorites.LABEL, Posts.GEO_DISTANCE },
            new int[] { R.id.favorite_name, R.id.favorite_distance }, 0);

    setListAdapter(mAdapter);

    Bundle args = new Bundle();
    args.putStringArray(Const.KEY_BUNDLE_CURSOR_SELECTION, getSelectionArgs());

    getLoaderManager().initLoader(FavoritesQuery._TOKEN, args, this);
}

From source file:net.potterpcs.recipebook.TagsEditor.java

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putStringArray(STATE, getTags());
}

From source file:org.zywx.wbpalmstar.plugin.inputtextfieldview.EUExInputTextFieldView.java

private void sendMessageWithType(int msgType, String[] params) {
    if (mHandler == null) {
        return;//from   w  w w .j a va  2 s . c o m
    }
    Message msg = new Message();
    msg.what = msgType;
    msg.obj = this;
    Bundle b = new Bundle();
    b.putStringArray(INPUTTEXTFIELDVIEW_FUN_PARAMS_KEY, params);
    msg.setData(b);
    mHandler.sendMessage(msg);
}

From source file:de.aw.monma.reports.ReportGeldflussCats.java

@Override
protected void setInternalArguments(Bundle args) {
    super.setInternalArguments(args);
    args.putStringArray(PROJECTION, projection);
    args.putParcelable(DBDEFINITION, tbd);
    args.putInt(LAYOUT, layout);//ww w. j  ava  2  s  . c  om
    args.putInt(VIEWHOLDERLAYOUT, viewHolderLayout);
    mReportStammdaten = args.getParcelable(REPORTSTAMMDATEN);
}