Thats a good work around thanks :)

On Apr 20, 9:43 am, Greg Krimer <[email protected]> wrote:
> The Message object contains two int fields arg1 and arg2 in addition
> to the what field to store extra data. To pass a boolean value within
> the message I would make use of of arg1 by mapping true to one and
> false to zero.
>
> On Apr 18, 9:40 am, DevilMayCry <[email protected]> wrote:
>
> > Hi All ,
> > I am calling a remote service from my app which initiates a callback
> > from another thread. I have implemented the message handler and am
> > getting the message in my UI thread. the problem is the callback data
> > contains a boolean along with int which i need in my app.
> > stub in my avctivity
> > CBGetuserPresence(int type,boolean isCommunicatorRunning)
> > {
> >   mhandler.obtainmessage(type,0)//passing zero as i dont know how top
> > pass bool values);} i am using mhandler.obtainmessage(what,obj) to 
> > partially get my
>
> > value. The thing is how do i get my boolean value in th message so
> > that i can retreive it from there.
> > Thanks All.
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to