List of usage examples for android.os Bundle getLong
public long getLong(String key)
From source file:org.ohmage.sync.StreamSyncAdapter.java
@Override public void onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) {//from w w w. j ava2 s . co m String streamId = extras.getString(EXTRA_STREAM_ID); Long streamVersion = extras.getLong(EXTRA_STREAM_VERSION); performSyncForStreams(account, new Streams(provider, account, streamId, streamVersion), new StreamWriterOutput(provider), syncResult); }
From source file:com.guayaba.tapir.ui.fragments.profile.ArtistAlbumFragment.java
/** * {@inheritDoc}// w w w. j av a 2 s .com */ @Override public Loader<List<Album>> onCreateLoader(final int id, final Bundle args) { return new ArtistAlbumLoader(getActivity(), args.getLong(Config.ID)); }
From source file:com.andrew.apollo.ui.fragments.profile.AlbumSongFragment.java
/** * {@inheritDoc}//w w w .j av a 2 s . co m */ @Override public Loader<List<Song>> onCreateLoader(final int id, final Bundle args) { return new AlbumSongLoader(getSherlockActivity(), args.getLong(Config.ID)); }
From source file:com.andrew.apollo.ui.fragments.profile.ArtistSongFragment.java
/** * {@inheritDoc}/* www .ja va 2 s .c om*/ */ @Override public Loader<List<Song>> onCreateLoader(final int id, final Bundle args) { return new ArtistSongLoader(getSherlockActivity(), args.getLong(Config.ID)); }
From source file:com.ultramegasoft.flavordex2.fragment.ViewEntryFragment.java
@Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setHasOptionsMenu(true);//from w ww .j a va 2 s . c o m final Bundle args = getArguments(); if (args != null) { mEntryId = args.getLong(ARG_ENTRY_ID); } }
From source file:com.dwdesign.tweetings.fragment.UserFavoritesFragment.java
@Override public Loader<SynchronizedStateSavedList<ParcelableStatus, Long>> newLoaderInstance(final Bundle args) { long account_id = -1, user_id = -1, max_id = -1, since_id = -1; String screen_name = null;/*from ww w. j av a 2 s. c o m*/ boolean is_home_tab = false; if (args != null) { account_id = args.getLong(INTENT_KEY_ACCOUNT_ID); user_id = args.getLong(INTENT_KEY_USER_ID, -1); if (user_id > 0) { mUserId = user_id; } max_id = args.getLong(INTENT_KEY_MAX_ID, -1); since_id = args.getLong(INTENT_KEY_SINCE_ID, -1); screen_name = args.getString(INTENT_KEY_SCREEN_NAME); is_home_tab = args.getBoolean(INTENT_KEY_IS_HOME_TAB); } return new UserFavoritesLoader(getActivity(), account_id, user_id, screen_name, max_id, since_id, getData(), getClass().getSimpleName(), is_home_tab); }
From source file:com.andrew.apollo.ui.fragments.profile.GenreSongFragment.java
/** * {@inheritDoc}/*from w ww.ja va2 s. c om*/ */ @Override public Loader<List<Song>> onCreateLoader(final int id, final Bundle args) { return new GenreSongLoader(getSherlockActivity(), args.getLong(Config.ID)); }
From source file:com.andrew.apollo.ui.fragments.profile.ArtistAlbumFragment.java
/** * {@inheritDoc}/*from ww w.j a v a2 s . com*/ */ @Override public Loader<List<Album>> onCreateLoader(final int id, final Bundle args) { return new ArtistAlbumLoader(getSherlockActivity(), args.getLong(Config.ID)); }
From source file:cn.studyjams.s2.sj0132.bowenyan.mygirlfriend.nononsenseapps.notepad.ui.list.ActivityList.java
private void handleArgs(Bundle savedInstanceState) { long mListIdToSelect; if (savedInstanceState != null) { mListIdToSelect = savedInstanceState.getLong(START_LIST_ID); } else {/*from w w w.j av a 2s.c o m*/ mListIdToSelect = ListHelper.getListId(getIntent()); } mListIdToSelect = ListHelper.getAViewList(this, mListIdToSelect); openList(mListIdToSelect); }
From source file:com.ultramegasoft.flavordex2.dialog.CatDeleteDialog.java
@NonNull @Override// w ww .java2 s . c o m public Dialog onCreateDialog(Bundle savedInstanceState) { final Context context = getContext(); if (context == null) { return super.onCreateDialog(savedInstanceState); } final Bundle args = getArguments(); if (args != null) { mCatId = args.getLong(ARG_CAT_ID); } return new AlertDialog.Builder(context).setIcon(R.drawable.ic_delete).setTitle(R.string.title_delete_cat) .setView(getLayout(savedInstanceState)) .setPositiveButton(R.string.button_ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { final Fragment target = getTargetFragment(); if (target != null) { target.onActivityResult(getTargetRequestCode(), Activity.RESULT_OK, null); } new CatDeleteTask(getContext(), mCatId).execute(); dismiss(); } }).setNegativeButton(R.string.button_cancel, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { dialog.cancel(); } }).create(); }