List of usage examples for android.os Bundle putIntArray
public void putIntArray(@Nullable String key, @Nullable int[] value)
From source file:de.aw.monma.snippets.SnippetRegelmBuchungen.java
@Override protected void setInternalArguments(Bundle args) { super.setInternalArguments(args); args.putParcelable(DBDEFINITION, tbd); args.putIntArray(VIEWRESIDS, viewResIDs); args.putInt(VIEWHOLDERLAYOUT, detailView); args.putStringArray(PROJECTION, projection); args.putString(SELECTION, selection); Calendar cal = Calendar.getInstance(); cal.add(Calendar.DAY_OF_MONTH, 5); Date date = cal.getTime();// www . ja va2 s . c om String[] selectionArgs = { DBConvert.convertDate2SQLiteDate(date) }; args.putStringArray(SELECTIONARGS, selectionArgs); }
From source file:com.philliphsu.bottomsheetpickers.time.numberpad.NumberPadTimePickerDialog.java
@Override public void onSaveInstanceState(Bundle outState) { if (mNumpad != null) { outState.putIntArray(KEY_DIGITS_INPUTTED, mNumpad.getDigits()); outState.putBoolean(KEY_IS_24_HOUR_VIEW, mIs24HourMode); outState.putInt(KEY_AMPM_STATE, mNumpad.getAmPmState()); outState.putBoolean(KEY_THEME_DARK, mThemeDark); outState.putBoolean(KEY_THEME_SET_AT_RUNTIME, mThemeSetAtRuntime); }/* w w w .j a v a2 s. c o m*/ }
From source file:com.justplay1.shoppist.features.settings.SelectThemeColorDialogFragment.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putIntArray(KEY_COLORS, colorsPrimary); outState.putInt(KEY_SELECTED_COLOR, selectedColor); }
From source file:com.medicohealthcare.service.AlarmServer.java
private void notifyMessage(List<ChatMessageCounts> messagecount) { int[] ids = new int[messagecount.size()]; int[] numberOfMessages = new int[messagecount.size()]; for (int i = 0; i < ids.length; i++) { ids[i] = messagecount.get(i).senderId; numberOfMessages[i] = messagecount.get(i).noOfNewMessages; }/*from w w w . j a va2 s.co m*/ Intent localIntent = new Intent(Constants.NEW_MESSAGE_ARRIVED); Bundle bundle = new Bundle(); bundle.putIntArray(Constants.NEW_MESSAGE_IDS, ids); bundle.putIntArray(Constants.NEW_MESSAGE_NUMBERS, numberOfMessages); localIntent.putExtras(bundle); localIntent.setAction(Constants.NEW_MESSAGE_ARRIVED); LocalBroadcastManager.getInstance(HomeActivity.getParentAtivity()).sendBroadcast(localIntent); }
From source file:com.kiwi.auready.util.view.ColorPickerDialog.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putIntArray(KEY_COLORS, mColors); outState.putSerializable(KEY_SELECTED_COLOR, mSelectedColor); outState.putStringArray(KEY_COLOR_CONTENT_DESCRIPTIONS, mColorContentDescriptions); }
From source file:com.zns.comicdroid.BaseListFragment.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putIntArray(STATE_SCROLLY, mScrollPos); outState.putString(STATE_FILTER, mFilter); }
From source file:com.bilibili.lib.pageradapter.demo.MainActivity.java
@Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); // save adapter shuffled color state outState.putIntArray("colors", toArray(adapter.mList)); }
From source file:alba_manager.albamanager.Util.colorpicker.ColorPickerDialog.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putIntArray(KEY_COLORS, mColors); outState.putSerializable(KEY_SELECTED_COLOR, mSelectedColor); }
From source file:ca.hoogit.soundchooser.SoundChooserDialog.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putIntArray(KEY_SOUNDS, mSounds); outState.putSerializable(KEY_SELECTED_SOUND, mSelectedSound); }
From source file:me.kaidul.uhunt.CompetitiveProgramming.java
@Override public void onSubChapterSelected(int prev, int position) { SubSubChaptersListFragment subSubChaptersListFrag = (SubSubChaptersListFragment) getChildFragmentManager() .findFragmentById(R.id.sub_sub_category_fragment); if (subSubChaptersListFrag != null) { subSubChaptersListFrag.updateList(prev, position); } else {//from w w w . j a v a 2 s . c om Fragment subSubChapterFragment = new SubSubChaptersListFragment(); Bundle args = new Bundle(); args.putIntArray(SubSubChaptersListFragment.POSITIONS, new int[] { prev, position }); subSubChapterFragment.setArguments(args); FragmentTransaction transaction = getChildFragmentManager().beginTransaction(); transaction.replace(R.id.fragment_container, subSubChapterFragment); transaction.commit(); } }