On Wed, Jan 25, 2012 at 10:36 AM, New Developer <[email protected]> wrote: > 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 ?
You are doing network I/O on the main application thread. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.4 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

