Java Code Examples for android.os.Bundle#getByte()
The following examples show how to use
android.os.Bundle#getByte() .
These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: aMuleRemote File: DlQueueFragment.java License: GNU General Public License v3.0 | 6 votes |
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (savedInstanceState == null) { mSortBy = (byte) mApp.mSettings.getLong(AmuleRemoteApplication.AC_SETTING_SORT, AmuleRemoteApplication.AC_SETTING_SORT_FILENAME); } else { mSortBy = savedInstanceState.getByte(BUNDLE_SORT_BY, AmuleRemoteApplication.AC_SETTING_SORT_FILENAME); mRestoreSelected = savedInstanceState.getInt(BUNDLE_SELECTED_ITEM, -1); mCatId = savedInstanceState.getLong(BUNDLE_CATEGORY_FILTER, ECCategory.NEW_CATEGORY_ID); } if (DEBUG) Log.d(TAG, "Sort settings onCreate is " + mSortBy); mDlQueueComparator = new ECPartFileComparator(AmuleRemoteApplication.getDlComparatorTypeFromSortSetting(mSortBy)); setHasOptionsMenu(true); }
Example 2
Source Project: android_9.0.0_r45 File: NfcV.java License: Apache License 2.0 | 5 votes |
/** @hide */ public NfcV(Tag tag) throws RemoteException { super(tag, TagTechnology.NFC_V); Bundle extras = tag.getTechExtras(TagTechnology.NFC_V); mRespFlags = extras.getByte(EXTRA_RESP_FLAGS); mDsfId = extras.getByte(EXTRA_DSFID); }
Example 3
Source Project: auto-value-bundle File: AutoValue_TestClassBundled.java License: MIT License | 5 votes |
public static TestClassBundled unbundle(Bundle bundle, Gson gson) { return new AutoValue_TestClassBundled( bundle, bundle.getByte("some_byte"), bundle.getBoolean("some_boolean"), bundle.getShort("some_short"), bundle.getInt("some_int"), bundle.getLong("some_long"), bundle.getChar("some_char"), bundle.getFloat("some_float"), bundle.getDouble("some_double"), bundle.getString("some_string"), bundle.getCharSequence("some_char_sequence"), bundle.getParcelable("some_parcelable"), bundle.getParcelableArrayList("some_parcelable_array_list"), bundle.getSparseParcelableArray("some_parcelable_sparse_array"), bundle.getSerializable("some_serializable"), bundle.getIntegerArrayList("some_integer_array_list"), bundle.getStringArrayList("some_string_array_list"), bundle.getCharSequenceArrayList("some_char_sequence_array_list"), bundle.getByteArray("some_byte_array"), bundle.getShortArray("some_short_array"), bundle.getCharArray("some_char_array"), bundle.getFloatArray("some_float_array"), gson.fromJson(bundle.getString("some_unknown_object"), new com.google.common.reflect.TypeToken<UnknownObject>(){}.getType()), gson.fromJson(bundle.getString("some_unknown_object_list"), new com.google.common.reflect.TypeToken<ArrayList<UnknownObject>>(){}.getType()), gson.fromJson(bundle.getString("test_enum"), new com.google.common.reflect.TypeToken<TestEnum>(){}.getType())); }
Example 4
Source Project: external-nfc-api File: NfcVImpl.java License: Apache License 2.0 | 5 votes |
public NfcVImpl(TagImpl tag) throws RemoteException { this.delegate = new BasicTagTechnologyImpl(tag, TagTechnology.NFC_V); Bundle extras = tag.getTechExtras(TagTechnology.NFC_V); mRespFlags = extras.getByte(EXTRA_RESP_FLAGS); mDsfId = extras.getByte(EXTRA_DSFID); }
Example 5
Source Project: MCPELauncher File: RelaunchInstrumentation.java License: Apache License 2.0 | 5 votes |
@Override public void onCreate(Bundle arguments) { super.onCreate(arguments); if (arguments.getByte("skipLaunch") == 0 && !skipLaunchViaFile()) { reLaunch(arguments); } }
Example 6
Source Project: android-state File: InjectionHelper.java License: Eclipse Public License 1.0 | 4 votes |
public byte getByte(Bundle state, String key) { return state.getByte(key + mBaseKey); }
Example 7
Source Project: android-state File: InjectionHelper.java License: Eclipse Public License 1.0 | 4 votes |
public Byte getBoxedByte(Bundle state, String key) { if (state.containsKey(key + mBaseKey)) { return state.getByte(key + mBaseKey); } return null; }