Skip to content Skip to sidebar Skip to footer

My App Error On Jelly Bean Simulator

i'm sorry if there is a question like this i just wanna know, i'm trying to read file .txt on server and i convert to int and i have succeed when i try on froyo simulator this is m

Solution 1:

Its nothing but the Network on main thread exception; Just include

if (android.os.Build.VERSION.SDK_INT > 9) {
    StrictMode.ThreadPolicypolicy=newStrictMode.ThreadPolicy.Builder().permitAll().build();
    StrictMode.setThreadPolicy(policy);
}

to your code (in onCreate() method) and you'll be fine :)

Post a Comment for "My App Error On Jelly Bean Simulator"