Advertisement
Guest User

Untitled

a guest
Apr 12th, 2016
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1.   for (int i = 0; i < MySingleton.getOurInstance().getHolder().size(); i++) {
  2.             MySingleton.getOurInstance().getButtonToNotifications().add(new
  3.                     ButtonToNotification(MySingleton.getOurInstance().getHolder().get(i).getEditTextCopy().getText().toString(),
  4.                     (int) MySingleton.getOurInstance().getHolder().get(i).getImSpiner().getSelectedItem()));
  5.         }
  6.  
  7.         String json = gson.toJson(MySingleton.getOurInstance().getButtonToNotifications());
  8.  
  9.         editor.putString("buttons", json);
  10.         editor.commit();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement