@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.onCreate(savedInstanceState); // getActivity().setContentView(R.layout.fragment_listen); bindToService(); mProgressDialog = new ProgressDialog(getActivity().getBaseContext()); // initializeButtons(); // setupStationPicker(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); demo = new Demo(); groups = new ArrayList<GroupChat>(); groups = demo.getGrs(); }
// Store instance variables based on arguments passed @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); cafename = getArguments().getString("cafename"); position = getArguments().getInt("position", 0); drinksByseletedCategory = getArguments().getParcelableArrayList("productsList"); }
@Override public void onCreate(Bundle savedInstanceState) { items = new ArrayList<Task>(); db = new DatabaseInterface(getActivity().getApplicationContext()); items = db.getTasks(); super.onCreate(savedInstanceState); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); controller = new Controller(this.getActivity().getApplicationContext()); sharedPreferences = getActivity().getSharedPreferences(MyPREFERENCES, Context.MODE_PRIVATE); getActivity().setTitle(R.string.profile); }
@Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments().containsKey(ITEMS_TAG)) { this.crickets = getArguments().getStringArrayList(ITEMS_TAG); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // drawer labels titles = getActivity().getResources().getStringArray(R.array.nav_drawer_labels); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments() != null) { position = getArguments().getInt(ARG_POSITION); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Log.w("AppClient", "base onCreate"); // init application ui = (BaseUi) getActivity(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments() != null) { // mParamItemNumber = getArguments().getInt(ARG_SECTION_NUMBER); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.preferences = new DilbertPreferences(getActivity()); this.zoomLevel = preferences.getDefaultZoomLevel(); setHasOptionsMenu(true); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (mBucketId == null) { mBucketId = savedInstanceState.getString(BUCKET_ID); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); hideSoftKeyboard(); local_dtos = getArguments().getParcelableArrayList("local_dtos"); busqueda = getArguments().getString("busqueda"); }
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ScaleOutput scale = new ScaleOutput(); String type = scale.getType(); mPageNumber = getArguments().getInt(ARG_PAGE); }
/** Retrieving this instance's number from its arguments. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); myListMan = new ListManager(activity); // categoryList = myListMan.getCategoriesAndFilters(); initVars(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments() != null) { mParam1 = getArguments().getString(ARG_PARAM1); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mUserLearnedDrawer = PreferencesEditor.getBooleanPreference( Dribbble.getContext(), PREF_USER_LEARNED_DRAWER, false); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments() != null) { mImageInfoList = (ArrayList<ImageInfo>) getArguments().getSerializable(ARG_PARAM1); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); context = this.getActivity().getApplication(); adapterNumber = new ArrayAdapter<>(context, R.layout.spinnerlist, number); map = new HashMap<String, String>(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); username = PreferenceManager.getDefaultSharedPreferences(getContext()).getString("username", ""); data = new ArrayList<>(); }
@Override public void onCreate(Bundle savedInstanceState) { listaComments = new ArrayList<Comment>(); preferences = getActivity().getSharedPreferences(Constantes.SP_FILE, Context.MODE_PRIVATE); commentsadapter = new ListaCommentsCustomAdapter(getActivity(), R.layout.linea_comments, listaComments); configurarToolbar(); Bundle args = getArguments(); if (args != null) { if (args.getParcelable("event") != null) { // this should happens when showing details of a event event = args.getParcelable("event"); // new getImage().execute("cartel" + event.getId() + ".jpg"); } else { if (args.getString("idevento") != null) { // si ha llegado una notificacion con la id del evento que hay que enseñar new CargarEvento().execute(args.getString("idevento")); } } new LoadComments().execute(Integer.toString(Constantes.NUMBER_MAX_COMMENTS_SHOW)); } super.onCreate(savedInstanceState); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mVolleyRequestQueue = Volley.newRequestQueue(getActivity()); intilizeStatic(); mMovieAdapter = new MovieAdapter(getActivity(), null, 0); trailerDataModified.set(false); reviewDataModified.set(false); movieDetailsModified.set(false); movieMinutesModified.set(false); if (savedInstanceState != null) { synchronized (mMovieId) { mMovieId = savedInstanceState.getLong(sMovieIdKey); YouTubeFirstTrailerURL = savedInstanceState.getParcelable("ShareYoutubeLinkKey"); if (YouTubeFirstTrailerURL != null) if (mShareActionProvider != null) { mMenu.findItem(R.id.action_share).setVisible(true); } else Log.e(LOG_TAG, "mShareActionProvider not set"); try { mMovieId.notifyAll(); } catch (IllegalMonitorStateException x) { } } Bundle b = new Bundle(); b.putLong(sMovieIdKey, mMovieId); getLoaderManager().restartLoader(MovieQuery.DETAIL_LOADER, b, this); getLoaderManager().restartLoader(TrailerQuery.TRAILER_LOADER, b, this); getLoaderManager().restartLoader(ReviewQuery.REVIEW_LOADER, b, this); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); context = getActivity(); mLists = new Vector<HashMap<String, Object>>(); adapter = new ExpandListViewAdapter(context, mLists); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mContext = getActivity().getApplicationContext(); // resolve dependency injections SoccerPoolsApplication.getApplicationComponent().inject(this); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); RequestQueue queue = Volley.newRequestQueue(getActivity()); // http://www.omdbapi.com/?plot=short&r=json&i= String url = getString(R.string.episode_detail_url) + getImDBId(); final EpisodeBaseActivity baseActivity = (EpisodeBaseActivity) getActivity(); baseActivity.showLoadingIndicator(); StringRequest stringRequest = new StringRequest( Request.Method.GET, url, new Response.Listener<String>() { @Override public void onResponse(String response) { EpisodeDetails episodeDetails = EpisodeDetailResponseParser.parseEpisodeDetails(response); if (episodeDetails != null) { TextView valYear = (TextView) getActivity().findViewById(R.id.valYear); valYear.setText(episodeDetails.getYear()); TextView valRated = (TextView) getActivity().findViewById(R.id.valRated); valRated.setText(episodeDetails.getRated()); TextView valReleased = (TextView) getActivity().findViewById(R.id.valReleased); valReleased.setText(episodeDetails.getReleasedDate()); TextView valSeason = (TextView) getActivity().findViewById(R.id.valSeason); valSeason.setText(episodeDetails.getSeasonNumber()); TextView valEpisode = (TextView) getActivity().findViewById(R.id.valEpisode); valEpisode.setText(episodeDetails.getEpisodeNumber()); TextView valRuntime = (TextView) getActivity().findViewById(R.id.valRuntime); valRuntime.setText(episodeDetails.getRunDuration()); getActivity().setTitle(episodeDetails.getTitle()); baseActivity.hideLoadingIndicator(); } else { baseActivity.showErrorDialog( getString(R.string.errorAlertTitle), getString(R.string.errorMessage)); baseActivity.hideLoadingIndicator(); } } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { baseActivity.hideLoadingIndicator(); baseActivity.showErrorDialog( getString(R.string.errorAlertTitle), getString(R.string.errorMessage)); } }); queue.add(stringRequest); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments() != null) { mQuestion = getArguments().getParcelable(Question.class.getSimpleName()); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); PreferenceManager.setDefaultValues(getActivity(), R.xml.prefs, false); setHasOptionsMenu(true); initDataSet(); mSharedPref = PreferenceManager.getDefaultSharedPreferences(getActivity()); mThemeChangedReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { log("Broadcast received: "); getActivity().recreate(); ThemeUtils.updateNavBar(getActivity()); } }; mNavChangedReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { log("Broadcast received: "); ThemeUtils.updateNavBar(getActivity()); } }; // Register receiver getActivity() .registerReceiver(mThemeChangedReceiver, new IntentFilter(INTENT_FILTER_THEME_CHANGED)); getActivity() .registerReceiver(mNavChangedReceiver, new IntentFilter(INTENT_FILTER_NAV_CHANGED)); }
@Override public void onCreate(Bundle savedInstanceState) { setHasOptionsMenu(true); // TODO Auto-generated method stub super.onCreate(savedInstanceState); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Make sure this Fragment is retained over a configuration change setRetainInstance(true); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Bundle bundle = this.getArguments(); i = bundle.getInt("page", 0); user = images.get(i); }