@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (savedInstanceState != null) { id = savedInstanceState.getString("id"); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Bundle bundle = this.getArguments(); incubateLevel = bundle.getInt("incubateLevel"); coopLevel = bundle.getInt("coopLevel"); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.names = getArguments().getStringArrayList("names"); Log.d("Dialog", "Got names as argument: " + this.names); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mLayoutInflater = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE); mActivity = (AddGameActivity) getActivity(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); prefs = getActivity().getSharedPreferences(Preferences.PREFERENCES, Context.MODE_PRIVATE); prefEditor = prefs.edit(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mContext = getActivity().getApplicationContext(); initDb(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mCallbackManager = CallbackManager.Factory.create(); LoginManager.getInstance() .registerCallback( mCallbackManager, new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult loginResult) { handlePedingAcction(); } @Override public void onCancel() {} @Override public void onError(FacebookException error) { Log.d("PostToSocialActivity", error.getMessage()); } }); mShareDialog = new ShareDialog(this); mShareDialog.registerCallback(mCallbackManager, shareCallback); mProfileTracker = new ProfileTracker() { @Override protected void onCurrentProfileChanged(Profile oldProfile, Profile currentProfile) { handlePedingAcction(); } }; }
@Override public void onCreate(Bundle savedInstanceState) { gab = Gab.getByID(getArguments().getInt(ARG_GAB_ID, -1)); // TODO super.onCreate(savedInstanceState); userObserver = new UserObserver( new UserObserver.Observer() { @Override public void refresh() { updateClueCount(); } @Override public void onUserChanged() { updateClueCount(); } private void updateClueCount() { if (User.getCurrentUser().getTotalClueCount() == User.UNKNOWN_CLUE_COUNT) { clueLabel.setText(R.string.gab_clue_updating_remaining); } else { clueLabel.setText( String.format( getActivity().getResources().getString(R.string.gab_clue_status_text), User.getCurrentUser().getTotalClueCount())); } } }); clueObserver = new ClueObserver( new ClueObserver.Observer() { @Override public void onChange(String action, int gabID, int objectID) { if (action == ClueObserver.CLUE_UPDATED) { Clue c = gab.getClueByID(objectID); updateClue(c); } } @Override public void refresh() { ForeignCollection<Clue> clues = gab.getClues(); ArrayList<Clue> clueList = new ArrayList<Clue>(clues); for (int i = 0; i < clueList.size(); i++) { updateClue(clueList.get(i)); } } private void updateClue(Clue c) { if (!c.isNew()) { ClueGridItem clueTile = new ClueGridItem(clueGrid, c.getNumber()); clueTile.fillWithClue(c); } } }, gab); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments() != null) { mParam1 = getArguments().getString(ARG_PARAM1); mParam2 = getArguments().getString(ARG_PARAM2); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (savedInstanceState != null && savedInstanceState.containsKey(EMBEDDED_KEY)) { mEmbedded = savedInstanceState.getBoolean(EMBEDDED_KEY); } else { mEmbedded = isInLayout(); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); File file = new File(getArguments().getString("path")); task = ExportTask.getInstance(getActivity(), file, this); task.startIfNotRunning(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mWpm = Math.max(MIN_WPM, getArguments().getInt("wpm")); mAnimationRunning = false; OpenSpritzApplication app = (OpenSpritzApplication) getActivity().getApplication(); this.mBus = app.getBus(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); MyLog.i("dialogEditItem", "onCreate"); Bundle args = getArguments(); if (args.containsKey(ARG_ITEM_ID)) { String itemID = args.getString(ARG_ITEM_ID); mItem = Item.getItem(itemID); mDialogTitle = args.getString(ARG_DIALOG_TITLE); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setCancelable(true); if (MediaService.getMediaServiceInstance() == null) { Intent serviceForegroundIntent = new Intent(); serviceForegroundIntent.setClass(getActivity(), MediaService.class); getActivity().startService(serviceForegroundIntent); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final Activity activity = getActivity(); activity .getWindow() .setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); if (savedInstanceState != null) { mCalendar.set(Calendar.YEAR, savedInstanceState.getInt(KEY_SELECTED_YEAR)); mCalendar.set(Calendar.MONTH, savedInstanceState.getInt(KEY_SELECTED_MONTH)); mCalendar.set(Calendar.DAY_OF_MONTH, savedInstanceState.getInt(KEY_SELECTED_DAY)); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); title = getArguments().getString("title"); manufacturer = getArguments().getString("manufacturer"); manufacturer_url = getArguments().getString("manufacturer_url"); model_name = getArguments().getString("model_name"); model_url = getArguments().getString("model_url"); model_number = getArguments().getString("model_number"); model_desc = getArguments().getString("model_desc"); presentation_url = getArguments().getString("presentation_url"); desc_xml = getArguments().getString("desc_xml"); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Bundle args = getArguments(); if (args != null) { appWidgetId = args.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID); } if (!PreferenceManager.getDefaultSharedPreferences(getActivity()) .getString(getPrefUsername(), "") .isEmpty()) { finishWidget(); } receiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (progressDialogTimer != null) { progressDialogTimer.cancel(); } if (progressDialog != null) { progressDialog.dismiss(); } if (UpdateService.ACTION_LOAD_SUCCESS.equals(action)) { finishWidget(); } else if (UpdateService.ACTION_LOAD_FAILURE.equals(action)) { String message = intent.getStringExtra(UpdateService.EXTRA_LOAD_ERROR); Builder builder = new Builder(context); builder.setTitle(R.string.title_error); builder.setMessage(message == null ? "Unknown error" : message); builder.setPositiveButton(android.R.string.ok, null); builder.show(); } } }; IntentFilter filter = new IntentFilter(); filter.addAction(UpdateService.ACTION_LOAD_SUCCESS); filter.addAction(UpdateService.ACTION_LOAD_FAILURE); getActivity().registerReceiver(receiver, filter); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (savedInstanceState != null && savedInstanceState.containsKey(KEY_HOUR_OF_DAY) && savedInstanceState.containsKey(KEY_MINUTE) && savedInstanceState.containsKey(KEY_IS_24_HOUR_VIEW)) { mInitialHourOfDay = savedInstanceState.getInt(KEY_HOUR_OF_DAY); mInitialMinute = savedInstanceState.getInt(KEY_MINUTE); mIs24HourMode = savedInstanceState.getBoolean(KEY_IS_24_HOUR_VIEW); mInKbMode = savedInstanceState.getBoolean(KEY_IN_KB_MODE); mThemeDark = savedInstanceState.getBoolean(KEY_DARK_THEME); } }
/** * Called when the fragment is starting. Sets the instance arguments and the style of the * fragment. * * @param savedInstanceState Data it most recently supplied in onSaveInstanceState(Bundle) */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); try { this.urlString = getArguments().getString("url"); this.versionInfo = new JSONArray(getArguments().getString("versionInfo")); } catch (JSONException e) { dismiss(); return; } setStyle(DialogFragment.STYLE_NO_TITLE, android.R.style.Theme_Holo_Light_Dialog); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); persistableFragment = (AbstractPersistableFragment<?>) getTargetFragment(); textView = (TextView) getActivity().findViewById(getArguments().getInt(TEXT_VIEW_ID)); dateField = findField( persistableFragment.getPersistable().getClass(), getArguments().getString(DATE_FIELD)); makeAccessible(dateField); }
@Override public void onCreate(Bundle savedInstance) { super.onCreate(savedInstance); mDefaultValue = ""; mDefaultSeconds = "240"; mDefaultSetName = "wakelock"; if (savedInstance != null) { mDefaultValue = savedInstance.getString("defaultValue"); mDefaultSeconds = savedInstance.getString("defaultSeconds"); mDefaultSetName = savedInstance.getString("defaultSetName"); } else if (getArguments() != null) { mDefaultValue = getArguments().getString("defaultValue"); mDefaultSeconds = getArguments().getString("defaultSeconds"); mDefaultSetName = getArguments().getString("defaultSetName"); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (savedInstanceState != null && savedInstanceState.containsKey(EMBEDDED_KEY)) { mEmbedded = savedInstanceState.getBoolean(EMBEDDED_KEY); } else { mEmbedded = isInLayout(); } if (LauncherLog.DEBUG) { LauncherLog.d( TAG, "onCreate: savedInstanceState = " + savedInstanceState + ", mEmbedded = " + mEmbedded + ", this = " + this); } }
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Bundle bundle = this.getArguments(); int action = bundle.getInt("action", 0); String content = getString(R.string.stay_tuned_content_approval); if (action == 1) { content = getString(R.string.stay_tuned_content_wrong); } else if (action == 2) { content = getString(R.string.stay_tuned_content_location); } return new MaterialDialog.Builder(getActivity()) .title(R.string.sent) .content(content) .positiveText(android.R.string.ok) .iconRes(R.drawable.settings_about) .build(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mLocInfo = getArguments().getString("locationInfo"); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); title = getArguments().getString(DIALOG_TITLE); type = title.equals(getActivity().getResources().getString(R.string.suggest_us)) ? 1 : 0; }
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setStyle(DialogFragment.STYLE_NO_FRAME, android.R.style.Theme_Holo_Light_Dialog_MinWidth); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); listener = (LocationSelectListener) getArguments().getSerializable(Constant.PICKER_LISTENER); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setStyle(STYLE_NO_TITLE, getTheme()); ((DFGApplication) getActivity().getApplication()).inject(this); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); prefEditor = NewBornApplication.getPrefEditor(); }