[android-developers] Question regarding Message object
Hi All,
I have a question regarding Message object. In handleMessage (Message
msg) of Handler class we get Message Object.
Till now i have seen only code like
switch (msg.what)
{
case 1:
------
}
I want to know about msg.obj.e.g
String name = null;
switch (msg.what)
{
case 1:
name= (String) msg.obj;
---
}
so my question is how and where we can set String object in Message
Object.
Thanks,
Sohan Badaya
--
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