Hi All
If I run the app using Debug (eclipse and the debug.keystore) all works well
If I run the app using Export (publish keystore)   I get the following


D/StrictMode(26474): StrictMode policy violation; ~duration=142 ms: android.os.StrictMode$StrictModeNetworkViolation: policy=20 violation=4 D/StrictMode(26474): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1105) D/StrictMode(26474): at java.net.InetAddress.lookupHostByName(InetAddress.java:391) D/StrictMode(26474): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:242) D/StrictMode(26474): at java.net.InetAddress.getAllByName(InetAddress.java:220) D/StrictMode(26474): at libcore.net.http.HttpConnection.<init>(HttpConnection.java:71) D/StrictMode(26474): at libcore.net.http.HttpConnection.<init>(HttpConnection.java:50) D/StrictMode(26474): at libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:351)


What is causing this ?
and how to avoid it  I have the following code

 StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
   .detectNetwork()
   .build());

But this makes no change in the Export state, makes a difference in the Debug without it it fails.


Thanks in advance

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to