callbacks on ui thread

0 votes

Are all the appwarp listener callbacks on non-UI thread? How do I know when I have to use runOnUIThread and when not to.

asked Feb 24, 2014 in AppWarp by james (17 points)

1 Answer

+1 vote
All our callbacks onJoinRoomDone, onChatReceived etc. are on invoked on a separate thread "MessageDispatcher". So, yes - f you are updating Android UI elements in the callback - then you'll probably need to use run on UI thread.
answered Feb 24, 2014 by dhruvc (1,099 points)
Ok cool. thanks!
Hi guys, so the callbacks from AppWarp are also in separate threads? Sometimes I had to use AsyncTask when I called an App42 Service otherwise I would receive an exception.
As example if I tried to use the Social Service Android dropped an exception.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...