List of usage examples for android.os Bundle putParcelableArrayList
public void putParcelableArrayList(@Nullable String key, @Nullable ArrayList<? extends Parcelable> value)
From source file:org.deviceconnect.android.client.fragment.AbstractSettingsFragment.java
@Override public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.settings); Bundle args = new Bundle(); args.putParcelableArrayList(OpenSourceLicenseFragment.EXTRA_OSS, getOpenSourceSoftware()); mOssFragment = new OpenSourceLicenseFragment(); mOssFragment.setArguments(args);//ww w . j ava 2 s . c o m Bundle policyArgs = new Bundle(); policyArgs.putInt(Intent.EXTRA_TITLE, R.string.privacy_policy); policyArgs.putInt(Intent.EXTRA_TEXT, R.raw.privacypolicy); mPrivacyPolicyFragment = new TextDialogFragment(); mPrivacyPolicyFragment.setArguments(policyArgs); Bundle tosArgs = new Bundle(); tosArgs.putInt(Intent.EXTRA_TITLE, R.string.terms_of_service); tosArgs.putInt(Intent.EXTRA_TEXT, R.raw.termsofservice); mTermsOfServiceFragment = new TextDialogFragment(); mTermsOfServiceFragment.setArguments(tosArgs); PreferenceScreen versionPreferences = (PreferenceScreen) getPreferenceScreen() .findPreference(getString(R.string.key_settings_about_appinfo)); try { versionPreferences.setSummary((getActivity().getPackageManager() .getPackageInfo(getActivity().getPackageName(), 0).versionName)); } catch (NameNotFoundException e) { e.printStackTrace(); } CheckBoxPreference checkBoxSslPreferences = (CheckBoxPreference) getPreferenceScreen() .findPreference(getString(R.string.key_settings_dconn_ssl)); checkBoxSslPreferences.setOnPreferenceChangeListener(this); EditTextPreference editHostPreferences = (EditTextPreference) getPreferenceScreen() .findPreference(getString(R.string.key_settings_dconn_host)); editHostPreferences.setOnPreferenceChangeListener(this); editHostPreferences.setSummary(editHostPreferences.getText()); EditTextPreference editPortPreferences = (EditTextPreference) getPreferenceScreen() .findPreference(getString(R.string.key_settings_dconn_port)); editPortPreferences.setOnPreferenceChangeListener(this); editPortPreferences.setSummary(editPortPreferences.getText()); // Local OAuth SettingsActivity activity = (SettingsActivity) getActivity(); EditTextPreference editClientIdPreferences = (EditTextPreference) getPreferenceScreen() .findPreference(getString(R.string.key_settings_dconn_client_id)); editClientIdPreferences.setSummary(activity.getClientId()); EditTextPreference editClientSecretPreferences = (EditTextPreference) getPreferenceScreen() .findPreference(getString(R.string.key_settings_dconn_client_secret)); editClientSecretPreferences.setSummary(activity.getClientSecret()); EditTextPreference editAccessTokenPreferences = (EditTextPreference) getPreferenceScreen() .findPreference(getString(R.string.key_settings_dconn_access_token)); editAccessTokenPreferences.setSummary(activity.getAccessToken()); }
From source file:de.uni_koblenz_landau.apow.EncounterListFragment.java
@Override public void onSaveInstanceState(Bundle savedInstanceState) { savedInstanceState.putParcelableArrayList(ARG_ENCOUNTERS, (ArrayList<ListViewItem>) mEncounters); super.onSaveInstanceState(savedInstanceState); }
From source file:org.videolan.vlc.gui.audio.AudioAlbumFragment.java
@Override public void onSaveInstanceState(Bundle outState) { outState.putParcelableArrayList("list", mMediaList); outState.putString("title", mTitle); super.onSaveInstanceState(outState); }
From source file:com.cesarvaliente.permissionssample.presentation.view.contactlist.ContactListFragment.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putParcelableArrayList(MainActivity.CURRENT_CONTACT_KEY, (ArrayList) contactList); }
From source file:pedroscott.com.popularmoviesapp.app.ui.home.HomeFragment.java
@Override public void onSaveInstanceState(Bundle outState) { outState.putParcelableArrayList(Movie.MOVIES, movies); super.onSaveInstanceState(outState); }
From source file:com.example.android.popularmovies.app.MoviesFragment.java
@Override public void onSaveInstanceState(Bundle outstate) { outstate.putParcelableArrayList("movies", movieArray); super.onSaveInstanceState(outstate); }
From source file:com.github.jobs.ui.fragment.SOUserPickerFragment.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putParcelableArrayList(KEY_USERS, new ArrayList<SOUser>(mAdapter.getItems())); outState.putString(KEY_SEARCH, mUserSearch.getText().toString().trim()); }
From source file:com.lloydtorres.stately.login.SwitchNationDialog.java
@Override public void onSaveInstanceState(Bundle outState) { // Save state super.onSaveInstanceState(outState); outState.putParcelableArrayList(LOGINS_KEY, logins); }
From source file:dk.cafeanalog.OpeningsFragment.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putParcelableArrayList(OPENING_CONTENT, mOpenings); }
From source file:ca.hoogit.garagepi.Controls.DoorsFragment.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putParcelableArrayList(Consts.KEY_DOORS, Doors.getInstance().doors()); }