Guest User

Untitled

a guest
Jun 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. String a;
  2. public void Onclick(View view)
  3. {
  4. ListView list=(ListView)findViewById(R.id.listview);
  5. EditText text3=(EditText)findViewById(R.id.editText3);
  6. Intent intent=getIntent();
  7. if(intent.getExtras()!=null) {
  8. a = intent.getStringExtra("this is a");
  9. Log.i("this is a", a);
  10. }
  11. ParseObject b=new ParseObject("User");
  12. b.put(a,text3.getText().toString());
  13. list2.add(text3.getText().toString());
  14. ArrayAdapter<String> a=new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,list2);
  15. list.setAdapter(a);
  16. }
Add Comment
Please, Sign In to add comment