Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 24th, 2012  |  syntax: None  |  size: 0.31 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. how to write seperated by comma on reading the data in android
  2. String[] ans=your_string.split(",");
  3. et1.setText(ans[0]);
  4. et2.setText(ans[1]);
  5. et3.setText(ans[2]);
  6.        
  7. String result = one.getText().toString()+", "+two.getText().toString()+", "+three.getText().toString();
  8.        
  9. String[] stringArray = string.split(",");