Exemplo n.º 1
0
 public static MyDialogFragment newInstance(String title) {
   MyDialogFragment frag = new MyDialogFragment();
   Bundle args = new Bundle();
   args.putString("text", title);
   frag.setArguments(args);
   return frag;
 }
Exemplo n.º 2
0
 private void popUpAlertDialog(String eventName) {
   Bundle b = new Bundle();
   b.putParcelable("USER", thisUser);
   Intent thisIntent = new Intent(getActivity().getBaseContext(), MainActivity.class);
   thisIntent.putExtras(b);
   b.putString("TITLE", "Event Not Found!");
   b.putString("EVENTNAME", eventName);
   MyDialogFragment fragment = new MyDialogFragment();
   fragment.setArguments(b);
   FragmentManager frgManager = getFragmentManager();
   fragment.show(frgManager, "MyDialog");
 }