SHARE
TWEET

Untitled

a guest Mar 19th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class AddTodoActivity extends AppCompatActivity {
  2.  
  3.     EditText title_et , id_et;
  4.     Button add_todo_btn;
  5.     private SharedPreferences preferences;
  6.     private SharedPreferences.Editor editor;
  7.     private boolean priority = false;
  8.  
  9.     @Override
  10.     protected void onCreate(Bundle savedInstanceState) {
  11.         super.onCreate(savedInstanceState);
  12.         setContentView(R.layout.activity_add_todo);
  13.  
  14.         preferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
  15.         editor = preferences.edit();
  16.  
  17.         title_et = findViewById(R.id.title_et);
  18.         id_et = findViewById(R.id.id_et);
  19.         add_todo_btn = findViewById(R.id.add_todo_btn);
  20.      
  21.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top