List of usage examples for android.app DialogFragment show
public int show(FragmentTransaction transaction, String tag)
From source file:com.droid080419.droid080419.elevenfifty_nine.AltAddTaskActivity.java
public void endTimeDialog(View view) { //opens a dialog fragment to input end time CalendarGlobals.alt = this; CalendarGlobals.isStartTime = false; DialogFragment newFrag = new TimePickerFragment(); newFrag.show(getFragmentManager(), "timePicker"); }
From source file:com.droid080419.droid080419.elevenfifty_nine.AltAddTaskActivity.java
public void startDateDialog(View view) { //opens a dialog fragment to input start date CalendarGlobals.alt = this; CalendarGlobals.isStartDate = true;// www .j a v a 2s . c om DialogFragment newFrag = new DatePickerFragment(); newFrag.show(getFragmentManager(), "datePicker"); }
From source file:com.droid080419.droid080419.elevenfifty_nine.AltAddTaskActivity.java
public void endDateDialog(View view) { //opens a dialog fragment to input end date CalendarGlobals.alt = this; CalendarGlobals.isStartDate = false; DialogFragment newFrag = new DatePickerFragment(); newFrag.show(getFragmentManager(), "datePicker"); }
From source file:de.uulm.graphicalpasswords.openpassgo.PassGoCreatePasswordActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_pass_go_create_password); SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this); int length = Integer.parseInt(sharedPref.getString("passgo_length", "6")); patternView = (PatternView) findViewById(R.id.passgo_patternview); patternView.setActivity((PassGo) this); patternView.setLength(length);/*from www . j ava2 s.com*/ save = (Button) findViewById(R.id.passgo_save); setReady(false); Bundle bundle = new Bundle(); bundle.putInt("length", length); DialogFragment intro = new IntroDialogFragment(); intro.setArguments(bundle); intro.show(getFragmentManager(), "intro"); // Show the Up button in the action bar. setupActionBar(); }
From source file:com.android.settings.aicp.AicpSettings.java
private void showDialogInner(int id) { DialogFragment newFragment = MyAlertDialogFragment.newInstance(id); newFragment.setTargetFragment(this, 0); newFragment.show(getFragmentManager(), "dialog " + id); }
From source file:org.exfio.csyncdroid.syncadapter.FxAccountEnterCredentialsFragment.java
void queryServer() { FragmentTransaction ft = getFragmentManager().beginTransaction(); Bundle args = new Bundle(); args.putString(android.accounts.AccountManager.KEY_ACCOUNT_TYPE, Constants.ACCOUNT_TYPE_FXACCOUNT); args.putString(FxAccountAccountSettings.KEY_ACCOUNT_SERVER, URIUtils.sanitize(accountServerProtocol + editAccountServerUrl.getText().toString())); args.putString(FxAccountAccountSettings.KEY_TOKEN_SERVER, URIUtils.sanitize(tokenServerProtocol + editTokenServerUrl.getText().toString())); args.putString(FxAccountAccountSettings.KEY_USERNAME, editUserName.getText().toString()); args.putString(FxAccountAccountSettings.KEY_PASSWORD, editPassword.getText().toString()); DialogFragment dialog = new QueryServerDialogFragment(); dialog.setArguments(args);/* w w w . j av a 2 s. c o m*/ dialog.show(ft, QueryServerDialogFragment.class.getName()); }
From source file:com.amfontai.cmput301asn1.NoteDetail.java
/** * Show date picker dialog./*from w w w . ja v a 2 s . c o m*/ * * @param v the v */ public void showDatePickerDialog(View v) { DialogFragment newFragment = new DatePickerFragment(); newFragment.show(getFragmentManager(), "datePicker"); }
From source file:org.amahi.anywhere.activity.ServerFileImageActivity.java
private void showFileDownloadingFragment(ServerShare share, ServerFile file) { DialogFragment fragment = ServerFileDownloadingFragment.newInstance(share, file); fragment.show(getFragmentManager(), ServerFileDownloadingFragment.TAG); }
From source file:com.quaninventory.scanner.activities.DrawerActivity.java
@Override public boolean onOptionsItemSelected(MenuItem item) { // The action bar home/up action should open or close the drawer. // ActionBarDrawerToggle will take care of this. if (mDrawerToggle.onOptionsItemSelected(item)) { return true; }//w w w . ja va 2s . co m // Handle action buttons switch (item.getItemId()) { case R.id.action_add: DialogFragment addItem = new AddItems(); addItem.show(getFragmentManager(), "sup"); return true; default: return super.onOptionsItemSelected(item); } }
From source file:com.kevinshen.beyondupnp.ui.MainActivity.java
@Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_select) { FragmentTransaction ft = getFragmentManager().beginTransaction(); Fragment prev = getFragmentManager().findFragmentByTag(DIALOG_FRAGMENT_TAG); if (prev != null) { ft.remove(prev);/*from w w w .j a v a 2s .c o m*/ } ft.addToBackStack(null); // Create and show the dialog. DialogFragment newFragment = DeviceListDialogFragment.newInstance(); newFragment.show(ft, DIALOG_FRAGMENT_TAG); } return super.onOptionsItemSelected(item); }