View Single Post
  #2 (permalink)  
Old July 21st, 2013, 04:17 AM
Android23Geek Android23Geek is offline
Authorized User
Points: 51, Level: 1
Points: 51, Level: 1 Points: 51, Level: 1 Points: 51, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2013
Location: Netherlands
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default

The project.properties file in the project targets android level 15 thus Ice Cream Sandwich. Although I do not recommend using that one as the platform will throw a NetworkOnMainThreadException.
This webpage link: NetworkOnMainThreadException in Android will take you to a developer.android webpage where Google exhausts why that is or why Android is programmed to react in that specific manner.

EDIT:
If you do not have any experience with AsyncTask or didn't read Chapter 9, I'd advise to not declare a minSDKVersion or targetSDKVersion in AndroidManifest.xml which - if you read the Android documentation on <uses-sdk> - is equivalent to minSDKVersion="1". However, that is a bad development paradigm as network requests usually make the UI/ main thread unresponsive.

Last edited by Android23Geek; July 21st, 2013 at 05:07 AM..
Reply With Quote