Friday, April 18, 2014

whether the service main thread can do to access the network operator


whether the service main thread can access the network operator to do?

android.os.NetworkOnMainThreadException

Inside the service access network is also need to open a thread. . . . .



<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
The main thread for network operation data stuck. Another starting threads.
Reply:
Was in the open thread, though service has no user interface but it runs by default in the application's main thread (main thread) of

No comments:

Post a Comment