Guest User

Untitled

a guest
Apr 28th, 2012
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. how to display text in edit text in the list view
  2. EditText b = (EditText)findViewById(R.id.editText1);
  3. b.setVisibility(1);
  4. output = (TextView) this.findViewById(R.id.editText1);
  5. output1 = (TextView) this.findViewById(R.id.editText2);
  6.  
  7. String s1= output1.getText().toString();
  8.  
  9. this.dh = new DataHelper(this);
  10.  
  11. this.dh.insert(s1);
  12.  
  13. List<String> names = this.dh.selectAll();
  14.  
  15.  
  16. StringBuilder sb = new StringBuilder();
  17.  
  18.  
  19.  
  20. sb.append("Names in database:nn");
  21. for (String name : names)
  22. {
  23. sb.append("t - t" + (name) + "n");
  24. }
  25.  
  26. this.output.setText(sb.toString());
Advertisement
Add Comment
Please, Sign In to add comment