Creating thread and socket in ViewRootImpl.java

23 views
Skip to first unread message

Pedro Maltez

unread,
Feb 3, 2017, 10:36:40 AM2/3/17
to android-porting
Hi,
I need a socket server in viewrootimpl. I thought of using a thread so that the socket does not block the main thread but the problem is that it looks like the thread is not created. In this thread I also implement an handler, so that I can communicate with the main thread. My question is: Can I create threads in ViewRootImpl? Can I use sockets in ViewRootImpl? If it is not possible, is there an alternative?
Reply all
Reply to author
Forward
0 new messages