Ver Mensaje Individual
  #5 (permalink)  
Antiguo 11/01/2013, 12:28
sheshito
 
Fecha de Ingreso: septiembre-2008
Mensajes: 257
Antigüedad: 16 años, 2 meses
Puntos: 4
Respuesta: Error al emular android

bueno esto es lo que m muestra en rojo el logcat:

Cita:
01-11 18:22:17.337: E/AndroidRuntime(1097): FATAL EXCEPTION: main
01-11 18:22:17.337: E/AndroidRuntime(1097): android.os.NetworkOnMainThreadException
01-11 18:22:17.337: E/AndroidRuntime(1097): at android.os.StrictMode$AndroidBlockGuardPolicy.onNe twork(StrictMode.java:1117)
01-11 18:22:17.337: E/AndroidRuntime(1097): at libcore.io.BlockGuardOs.connect(BlockGuardOs.java: 84)
01-11 18:22:17.337: E/AndroidRuntime(1097): at libcore.io.IoBridge.connectErrno(IoBridge.java:127 )
01-11 18:22:17.337: E/AndroidRuntime(1097): at libcore.io.IoBridge.connect(IoBridge.java:112)
01-11 18:22:17.337: E/AndroidRuntime(1097): at java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:192)
01-11 18:22:17.337: E/AndroidRuntime(1097): at java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:459)
01-11 18:22:17.337: E/AndroidRuntime(1097): at java.net.Socket.connect(Socket.java:842)
01-11 18:22:17.337: E/AndroidRuntime(1097): at org.apache.http.conn.scheme.PlainSocketFactory.con nectSocket(PlainSocketFactory.java:119)
01-11 18:22:17.337: E/AndroidRuntime(1097): at org.apache.http.impl.conn.DefaultClientConnectionO perator.openConnection(DefaultClientConnectionOper ator.java:144)
01-11 18:22:17.337: E/AndroidRuntime(1097): at org.apache.http.impl.conn.AbstractPoolEntry.open(A bstractPoolEntry.java:164)
01-11 18:22:17.337: E/AndroidRuntime(1097): at org.apache.http.impl.conn.AbstractPooledConnAdapte r.open(AbstractPooledConnAdapter.java:119)
01-11 18:22:17.337: E/AndroidRuntime(1097): at org.apache.http.impl.client.DefaultRequestDirector .execute(DefaultRequestDirector.java:360)
01-11 18:22:17.337: E/AndroidRuntime(1097): at org.apache.http.impl.client.AbstractHttpClient.exe cute(AbstractHttpClient.java:555)
01-11 18:22:17.337: E/AndroidRuntime(1097): at org.apache.http.impl.client.AbstractHttpClient.exe cute(AbstractHttpClient.java:487)
01-11 18:22:17.337: E/AndroidRuntime(1097): at org.apache.http.impl.client.AbstractHttpClient.exe cute(AbstractHttpClient.java:465)
01-11 18:22:17.337: E/AndroidRuntime(1097): at com.example.taller06oct.JSONParser.makeHttpRequest (JSONParser.java:62)
01-11 18:22:17.337: E/AndroidRuntime(1097): at com.example.taller06oct.EditEmpleadosActivity$GetE mpleadoDetails$1.run(EditEmpleadosActivity.java:13 4)
01-11 18:22:17.337: E/AndroidRuntime(1097): at android.os.Handler.handleCallback(Handler.java:725 )
01-11 18:22:17.337: E/AndroidRuntime(1097): at android.os.Handler.dispatchMessage(Handler.java:92 )
01-11 18:22:17.337: E/AndroidRuntime(1097): at android.os.Looper.loop(Looper.java:137)
01-11 18:22:17.337: E/AndroidRuntime(1097): at android.app.ActivityThread.main(ActivityThread.jav a:5039)
01-11 18:22:17.337: E/AndroidRuntime(1097): at java.lang.reflect.Method.invokeNative(Native Method)
01-11 18:22:17.337: E/AndroidRuntime(1097): at java.lang.reflect.Method.invoke(Method.java:511)
01-11 18:22:17.337: E/AndroidRuntime(1097): at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:793)
01-11 18:22:17.337: E/AndroidRuntime(1097): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:560)
01-11 18:22:17.337: E/AndroidRuntime(1097): at dalvik.system.NativeStart.main(Native Method)