List of usage examples for android.os Bundle getIntArray
@Nullable public int[] getIntArray(@Nullable String key)
From source file:org.chromium.chrome.browser.preferences.privacy.ConfirmImportantSitesDialogFragment.java
@Override public void setArguments(Bundle args) { super.setArguments(args); mImportantDomains = args.getStringArray(IMPORTANT_DOMAINS_TAG); mFaviconURLs = args.getStringArray(FAVICON_URLS_TAG); int[] importantDomainReasons = args.getIntArray(IMPORTANT_DOMAIN_REASONS_TAG); for (int i = 0; i < mImportantDomains.length; ++i) { mImportantDomainsReasons.put(mImportantDomains[i], importantDomainReasons[i]); mCheckedState.put(mImportantDomains[i], true); }//from www .ja v a 2 s .c o m }
From source file:android.example.colorpicker.ColorPickerDialog.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments() != null) { mTitleResId = getArguments().getInt(KEY_TITLE_ID); mColumns = getArguments().getInt(KEY_COLUMNS); mSize = getArguments().getInt(KEY_SIZE); }/*from w w w. ja v a 2 s . com*/ if (savedInstanceState != null) { mColors = savedInstanceState.getIntArray(KEY_COLORS); mSelectedColor = (Integer) savedInstanceState.getSerializable(KEY_SELECTED_COLOR); } }
From source file:com.dm.material.dashboard.candybar.fragments.dialog.InAppBillingFragment.java
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); if (savedInstanceState != null) { mType = savedInstanceState.getInt(TYPE); mKey = savedInstanceState.getString(KEY); mProductsId = savedInstanceState.getStringArray(PRODUCT_ID); mProductsCount = savedInstanceState.getIntArray(PRODUCT_COUNT); }/*from w w w. jav a 2 s. c om*/ loadInAppProducts(); }
From source file:alba_manager.albamanager.Util.colorpicker.ColorPickerDialog.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments() != null) { mTitleResId = getArguments().getInt(KEY_TITLE_ID); mColumns = getArguments().getInt(KEY_COLUMNS); mSize = getArguments().getInt(KEY_SIZE); }/* ww w. j a v a2 s . c om*/ if (savedInstanceState != null) { mColors = savedInstanceState.getIntArray(KEY_COLORS); mSelectedColor = (Integer) savedInstanceState.getSerializable(KEY_SELECTED_COLOR); } }
From source file:com.s16.picker.colorpicker.ColorPickerDialog.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments() != null) { mTitleResId = getArguments().getInt(KEY_TITLE_ID); mColumns = getArguments().getInt(KEY_COLUMNS); mSize = getArguments().getInt(KEY_SIZE); }//from w ww . j ava 2s.co m if (savedInstanceState != null) { mColors = savedInstanceState.getIntArray(KEY_COLORS); mSelectedColor = (Integer) savedInstanceState.getSerializable(KEY_SELECTED_COLOR); mColorContentDescriptions = savedInstanceState.getStringArray(KEY_COLOR_CONTENT_DESCRIPTIONS); } }
From source file:com.actinarium.kinetic.ui.MainActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); if (savedInstanceState != null) { mAccelData = savedInstanceState.getParcelable(ARG_ACCEL); mGyroData = savedInstanceState.getParcelable(ARG_GYRO); mRotVectorData = savedInstanceState.getParcelable(ARG_RV); mResultHoldersState = savedInstanceState.getBooleanArray(ARG_RHS); mHolderToAnimatorMap = savedInstanceState.getIntArray(ARG_HAM); return;/* w w w . j a v a 2 s . c o m*/ } else { mResultHoldersState = new boolean[] { true, true, true, true, true, true }; mHolderToAnimatorMap = new int[] { PreviewHolder.ANIMATOR_X, PreviewHolder.ANIMATOR_Y, PreviewHolder.NO_ANIMATOR, PreviewHolder.NO_ANIMATOR, PreviewHolder.NO_ANIMATOR, PreviewHolder.ANIMATOR_ROTATION, }; } getSupportFragmentManager().beginTransaction() .add(R.id.root_container, new RecordFragment(), RecordFragment.TAG).commit(); }
From source file:net.xpece.android.colorpicker.ColorPickerDialog.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments() != null) { mTitleResId = getArguments().getInt(KEY_TITLE_ID); mColumns = getArguments().getInt(KEY_COLUMNS); //noinspection WrongConstant mSize = getArguments().getInt(KEY_SIZE); }/*from w ww .j a v a 2s . c o m*/ if (savedInstanceState != null) { mColors = savedInstanceState.getIntArray(KEY_COLORS); mSelectedColor = (Integer) savedInstanceState.getSerializable(KEY_SELECTED_COLOR); mColorContentDescriptions = savedInstanceState.getStringArray(KEY_COLOR_CONTENT_DESCRIPTIONS); } }
From source file:de.stadtrallye.rallyesoft.fragments.ChatroomFragment.java
/** * retain savedInstanceState for when creating the list (ScrollState) */// www.j av a2 s . co m @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Bundle args = getArguments(); if (args != null) roomID = args.getInt(Std.CHATROOM, -1); if (savedInstanceState != null) lastPos = savedInstanceState.getIntArray(Std.LAST_POS); else lastPos = new int[2]; setHasOptionsMenu(true); chatroom = Server.getCurrentServer().acquireChatManager(this).findChatroom(roomID); pictureManager = Storage.getPictureManager(); }
From source file:colorpicker.ColorPickerDialog.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments() != null) { mTitle = getArguments().getString(KEY_TITLE_ID); mMessage = getArguments().getString(KEY_MESSAGE_ID); mColumns = getArguments().getInt(KEY_COLUMNS); mSize = getArguments().getInt(KEY_SIZE); }// w ww . j av a 2s. c om if (savedInstanceState != null) { mColors = savedInstanceState.getIntArray(KEY_COLORS); Serializable obj = savedInstanceState.getSerializable(KEY_SELECTED_COLOR); if (obj != null && obj instanceof Integer) { mSelectedColor = (Integer) obj; } } }
From source file:org.xdty.preference.colorpicker.ColorPickerDialog.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments() != null) { mTitleResId = getArguments().getInt(KEY_TITLE_ID); mColumns = getArguments().getInt(KEY_COLUMNS); mSize = getArguments().getInt(KEY_SIZE); key = getArguments().getString("key"); }// w ww . ja va2s.c o m if (savedInstanceState != null) { mColors = savedInstanceState.getIntArray(KEY_COLORS); mSelectedColor = savedInstanceState.getInt(KEY_SELECTED_COLOR); mColorContentDescriptions = savedInstanceState.getStringArray(KEY_COLOR_CONTENT_DESCRIPTIONS); key = savedInstanceState.getString("key"); } }