[android-developers] Re: Show output on screen.
Not sure if this will help, as I'm sorta new to this myself.
I will give you the example in code, but really you should use the
layout xml files to define UI elements...
Again, sorry if this isn't very helpful...
TextView tv = new TextView(this);
if ("1".equals(PleaseEnter.getText().toString()))
tv.setText("This is 1");
else if (PleaseEnter.equals("2"))
tv.setText("This 2");
else if (PleaseEnter.equals("3"))
tv.setText("This 3");
else
tv.setText("That number is not recognized.");
}
setContentView(tv);
}
catch (Exception ex)
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home