
Untitled
By: a guest on
Apr 28th, 2012 | syntax:
None | size: 0.62 KB | hits: 12 | expires: Never
how to display text in edit text in the list view
EditText b = (EditText)findViewById(R.id.editText1);
b.setVisibility(1);
output = (TextView) this.findViewById(R.id.editText1);
output1 = (TextView) this.findViewById(R.id.editText2);
String s1= output1.getText().toString();
this.dh = new DataHelper(this);
this.dh.insert(s1);
List<String> names = this.dh.selectAll();
StringBuilder sb = new StringBuilder();
sb.append("Names in database:nn");
for (String name : names)
{
sb.append("t - t" + (name) + "n");
}
this.output.setText(sb.toString());