问题
When debugging my app on HTC Sense, I have got (I believe it is) an exception for the following NoClassDefFoundError on android.os.NetworkOnMainThreadException
The piece of code, where it seems to break is when calling this line of code
@SuppressWarnings("unchecked")
ArrayResponse<Grid> response = (ArrayResponse<Grid>) HttpHandler.getHttpHandler().processGet(url, ArrayResponse.class, listType);
回答1:
If your HTC sense is running android API Version < 11 (HONEYCOMB), android.os.NetworkOnMainThreadException is not yet available.
来源:https://stackoverflow.com/questions/12962645/noclassdeffounderror-on-htc-sense