List of usage examples for android.os Bundle putInt
public void putInt(@Nullable String key, int value)
From source file:com.irccloud.android.fragment.BufferOptionsFragment.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putInt("bid", bid); outState.putInt("cid", cid); outState.putString("type", type); }
From source file:com.whamads.nativecamera.NativeCameraLauncher.java
@Override public Bundle onSaveInstanceState() { Bundle state = new Bundle(); state.putInt("mQuality", mQuality); state.putInt("targetWidth", targetWidth); state.putInt("targetHeight", targetHeight); state.putString("date", date); state.putParcelable("imageUri", imageUri); state.putSerializable("photo", photo); return state; }
From source file:io.cloudmatch.demo.swipeandcolor.SACActivity.java
private void showErrorDialog(int errorCode) { // Create a fragment for the error dialog ErrorDialogFragment dialogFragment = new ErrorDialogFragment(); // Pass the error that should be displayed Bundle args = new Bundle(); args.putInt(DIALOG_ERROR, errorCode); dialogFragment.setArguments(args);//from ww w . j a va 2s .c o m dialogFragment.show(getSupportFragmentManager(), "errordialog"); }
From source file:cn.newgxu.android.bbs.ui.RepliesFragment.java
@Override public void onSaveInstanceState(Bundle outState) { outState.putInt(REPLY_INDEX, mPosition); super.onSaveInstanceState(outState); }
From source file:com.miz.mizuu.Actor.java
@Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putInt("tab", awesomePager.getCurrentItem()); outState.putString("json", json); outState.putString("baseUrl", baseUrl); }
From source file:com.QuarkLabs.BTCeClient.fragments.OrdersBookFragment.java
@Override public void onSaveInstanceState(Bundle outState) { //saving position of spinner outState.putInt("position", mPairsSpinner.getSelectedItemPosition()); }
From source file:com.irccloud.android.fragment.ChannelOptionsFragment.java
@Override public void onSaveInstanceState(Bundle state) { super.onSaveInstanceState(state); state.putInt("cid", cid); state.putInt("bid", bid); }
From source file:com.irccloud.android.fragment.IgnoreListFragment.java
@Override public void onSaveInstanceState(Bundle state) { state.putInt("cid", cid); }
From source file:com.google.android.gms.samples.plus.SignInActivity.java
@Override public void onConnectionFailed(ConnectionResult status) { resetAccountState();//w ww . j av a 2 s . c o m if (mConnectionProgressDialog.isShowing()) { // The user clicked the button already and we are showing a spinner // progress dialog. We dismiss the progress dialog and start to // resolve connection errors. mConnectionProgressDialog.dismiss(); if (status.hasResolution()) { try { status.startResolutionForResult(this, REQUEST_CODE_RESOLVE_FAILURE); } catch (SendIntentException e) { mPlusClient.connect(); } } } // Save the intent so that we can start an activity when the user clicks // the button. mStatus = status; FragmentManager fragmentManager = getSupportFragmentManager(); if (!status.hasResolution() && GooglePlayServicesUtil.isUserRecoverableError(status.getErrorCode()) && fragmentManager.findFragmentByTag(TAG_ERROR_DIALOG_FRAGMENT) == null) { DialogFragment fragment = new GooglePlayServicesErrorDialogFragment(); Bundle args = new Bundle(); args.putInt(GooglePlayServicesErrorDialogFragment.ARG_ERROR_CODE, status.getErrorCode()); args.putInt(GooglePlayServicesErrorDialogFragment.ARG_REQUEST_CODE, REQUEST_CODE_RESOLVE_MISSING_GP); fragment.setArguments(args); fragment.show(fragmentManager, TAG_ERROR_DIALOG_FRAGMENT); } }
From source file:com.cssweb.android.quote.QHHQActivity.java
private void loadAllStock(final int position) { Intent localIntent = new Intent(); if (position == 0) { localIntent.setClass(QHHQActivity.this, ZJS.class); Bundle extras = new Bundle(); extras.putInt("stocktype", 201); extras.putString("market", "cffex"); extras.putString("exchange", "cf"); extras.putString("title", ""); localIntent.putExtras(extras);//w ww . j a v a 2s . c o m } else if (position == 1) { localIntent.setClass(QHHQActivity.this, SQS.class); Bundle extras = new Bundle(); extras.putInt("stocktype", 201); extras.putString("market", "sfe"); extras.putString("exchange", "sf"); extras.putString("title", ""); extras.putInt("type", R.array.sqs_type_menu); localIntent.putExtras(extras); } else if (position == 2) { localIntent.setClass(QHHQActivity.this, DSS.class); Bundle extras = new Bundle(); extras.putInt("stocktype", 201); extras.putString("market", "dce"); extras.putString("exchange", "dc"); extras.putString("title", ""); extras.putInt("type", R.array.dss_type_menu); localIntent.putExtras(extras); } else if (position == 3) { localIntent.setClass(QHHQActivity.this, ZSS.class); Bundle extras = new Bundle(); extras.putInt("stocktype", 201); extras.putString("market", "czce"); extras.putString("exchange", "cz"); extras.putString("title", ""); extras.putInt("type", R.array.zss_type_menu); localIntent.putExtras(extras); } else if (position == 4) { localIntent.setClass(QHHQActivity.this, QQSP.class); } startActivity(localIntent); }