I am working with the zxing intent. I have this much working but I
want to be able to split the string into an array and then a key =>
var relationship to enter into text fields. for example I have the
following returned:
Name:Matthew Pickachue;Address:111 Wish I knew java and android
better, Waybetter, MI, 49111;Phone:
8052033180;Note:blahblahblahblahblahblahblahblahblahblahblahblahblahblahblah
and I want the it to end up like:
outputname=(TextView)findViewById(R.id.name);
outputname.setText(Name);
outputaddress=(TextView)findViewById(R.id.address);
outputaddress.setText(Address);
and so on. There maybe a better way to do this I would assume but not
sure how. Please any assistance would help. Here is what I have so
far:
public void onActivityResult(int requestCode, int resultCode, Intent
intent) {
if (requestCode == 0) {
if (resultCode == RESULT_OK) {
String contents = intent.getStringExtra("SCAN_RESULT");
String format = intent.getStringExtra
("SCAN_RESULT_FORMAT");
setContentView(R.layout.form2);
TextView outpformat;
outpformat=(TextView)findViewById(R.id.widget433);
outpformat.setText(contents);
}
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en