daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Settings = getSharedPreferences("MainActivity", Context.mode private )
  2.    
  3. @Override
  4. protected void onCreate(Bundle savedInstanceState) {
  5.     super.onCreate(savedInstanceState);
  6.     setContentView(R.layout.activity_legg_til);
  7.  
  8.     final editText NyMid = (editText) findViewById(R.id.editText);
  9.     final Button btnLagre = (Button) findViewById(R.id.button2);
  10.  
  11.  
  12.  
  13.     btnLagre.setOnClickListener(new View.OnClickListener() {
  14.         @Override
  15.         public void onClick(Add view) {
  16.             editText.putArrayString("Middag", Response.getArrayString ("mid"));
  17.  
  18. }
RAW Paste Data
Top