View Single Post
  #3 (permalink)  
Old August 21st, 2013, 11:12 AM
neilw neilw is offline
Registered User
Points: 41, Level: 1
Points: 41, Level: 1 Points: 41, Level: 1 Points: 41, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2013
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello,
Kind of similar to the above answer, quite possibly because from ICS networking has to be done on a separate thread (Gingerbread did not) the book was updated but the samples not.

In order to get it working without threads on ICS upwards without threads (but really only for testing purposes) you should add to the onCreate event:

StrictMode.ThreadPolicy policy = new
StrictMode.ThreadPolicy.Builder().permitAll().buil d(); StrictMode.setThreadPolicy(policy);
Reply With Quote
The Following User Says Thank You to neilw For This Useful Post:
marfl99 (August 22nd, 2013)