• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Login HTTP Post problem 4.X.X

Petr?petr

  • pp?pp

    Votes: 0 0.0%
  • tt?tt

    Votes: 0 0.0%

  • Total voters
    0

newster

Lurker
Hello
I have a problem with the functionality of the application under the newer systems like Android 4.0.x and 4.1.X systems under 2.2 and 2.3.x works alright. Please where can be the problem?

Here I attach an extract from the Eclipse LogCasu

[HIGH]
03-09 09:17:11.708: I/dalvikvm(560): threadid=3: reacting to signal 3
03-09 09:17:12.098: I/dalvikvm(560): Wrote stack traces to '/data/anr/traces.txt'
03-09 09:17:12.239: I/dalvikvm(560): threadid=3: reacting to signal 3
03-09 09:17:12.329: I/dalvikvm(560): Wrote stack traces to '/data/anr/traces.txt'
03-09 09:17:12.730: I/dalvikvm(560): threadid=3: reacting to signal 3
03-09 09:17:12.799: I/dalvikvm(560): Wrote stack traces to '/data/anr/traces.txt'

03-09 09:17:13.159: D/gralloc_goldfish(560): Emulator without GPU emulation detected.

03-09 09:17:13.239: I/dalvikvm(560): threadid=3: reacting to signal 3
03-09 09:17:13.309: I/dalvikvm(560): Wrote stack traces to '/data/anr/traces.txt'

03-09 09:19:17.079: W/System.err(560): android.os.NetworkOnMainThreadException
03-09 09:19:17.089: W/System.err(560): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1099)
03-09 09:19:17.099: W/System.err(560): at java.net.InetAddress.lookupHostByName(InetAddress.java:391)
03-09 09:19:17.099: W/System.err(560): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:242)
03-09 09:19:17.099: W/System.err(560): at java.net.InetAddress.getAllByName(InetAddress.java:220)
03-09 09:19:17.099: W/System.err(560): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:137)
03-09 09:19:17.099: W/System.err(560): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
03-09 09:19:17.109: W/System.err(560): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
03-09 09:19:17.119: W/System.err(560): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
03-09 09:19:17.119: W/System.err(560): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
03-09 09:19:17.119: W/System.err(560): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
03-09 09:19:17.119: W/System.err(560): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
03-09 09:19:17.139: W/System.err(560): at com.orgpetrtn.login_beta4.MainActivity.onClick(MainActivity.java:83)
03-09 09:19:17.139: W/System.err(560): at android.view.View.performClick(View.java:3511)
03-09 09:19:17.139: W/System.err(560): at android.view.View$PerformClick.run(View.java:14105)
03-09 09:19:17.158: W/System.err(560): at android.os.Handler.handleCallback(Handler.java:605)
03-09 09:19:17.158: W/System.err(560): at android.os.Handler.dispatchMessage(Handler.java:92)
03-09 09:19:17.169: W/System.err(560): at android.os.Looper.loop(Looper.java:137)
03-09 09:19:17.179: W/System.err(560): at android.app.ActivityThread.main(ActivityThread.java:4424)
03-09 09:19:17.179: W/System.err(560): at java.lang.reflect.Method.invokeNative(Native Method)
03-09 09:19:17.179: W/System.err(560): at java.lang.reflect.Method.invoke(Method.java:511)
03-09 09:19:17.189: W/System.err(560): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
03-09 09:19:17.189: W/System.err(560): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
03-09 09:19:17.199: W/System.err(560): at dalvik.system.NativeStart.main(Native Method)

03-09 09:19:18.189: D/dalvikvm(560): GC_CONCURRENT freed 246K, 4% free 9224K/9543K, paused 8ms+7ms

03-09 09:19:54.049: W/System.err(560): android.os.NetworkOnMainThreadException
03-09 09:19:54.061: W/System.err(560): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1099)
03-09 09:19:54.069: W/System.err(560): at java.net.InetAddress.lookupHostByName(InetAddress.java:391)
03-09 09:19:54.069: W/System.err(560): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:242)
03-09 09:19:54.069: W/System.err(560): at java.net.InetAddress.getAllByName(InetAddress.java:220)
03-09 09:19:54.080: W/System.err(560): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:137)
03-09 09:19:54.080: W/System.err(560): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
03-09 09:19:54.080: W/System.err(560): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
03-09 09:19:54.089: W/System.err(560): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
03-09 09:19:54.089: W/System.err(560): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
03-09 09:19:54.089: W/System.err(560): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
03-09 09:19:54.099: W/System.err(560): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
03-09 09:19:54.099: W/System.err(560): at com.orgpetrtn.login_beta4.MainActivity.onClick(MainActivity.java:83)
03-09 09:19:54.099: W/System.err(560): at android.view.View.performClick(View.java:3511)
03-09 09:19:54.099: W/System.err(560): at android.view.View$PerformClick.run(View.java:14105)
03-09 09:19:54.099: W/System.err(560): at android.os.Handler.handleCallback(Handler.java:605)
03-09 09:19:54.119: W/System.err(560): at android.os.Handler.dispatchMessage(Handler.java:92)
03-09 09:19:54.119: W/System.err(560): at android.os.Looper.loop(Looper.java:137)
03-09 09:19:54.129: W/System.err(560): at android.app.ActivityThread.main(ActivityThread.java:4424)
03-09 09:19:54.129: W/System.err(560): at java.lang.reflect.Method.invokeNative(Native Method)
03-09 09:19:54.140: W/System.err(560): at java.lang.reflect.Method.invoke(Method.java:511)
03-09 09:19:54.140: W/System.err(560): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
03-09 09:19:54.149: W/System.err(560): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
03-09 09:19:54.149: W/System.err(560): at dalvik.system.NativeStart.main(Native Method)
03-09 09:20:14.049: W/System.err(560): android.os.NetworkOnMainThreadException
03-09 09:20:14.059: W/System.err(560): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1099)
03-09 09:20:14.059: W/System.err(560): at java.net.InetAddress.lookupHostByName(InetAddress.java:391)
03-09 09:20:14.059: W/System.err(560): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:242)
03-09 09:20:14.089: W/System.err(560): at java.net.InetAddress.getAllByName(InetAddress.java:220)
03-09 09:20:14.089: W/System.err(560): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:137)
03-09 09:20:14.089: W/System.err(560): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
03-09 09:20:14.109: W/System.err(560): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
03-09 09:20:14.109: W/System.err(560): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
03-09 09:20:14.109: W/System.err(560): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
03-09 09:20:14.109: W/System.err(560): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
03-09 09:20:14.109: W/System.err(560): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
03-09 09:20:14.109: W/System.err(560): at com.orgpetrtn.login_beta4.MainActivity.onClick(MainActivity.java:83)
03-09 09:20:14.119: W/System.err(560): at android.view.View.performClick(View.java:3511)
03-09 09:20:14.119: W/System.err(560): at android.view.View$PerformClick.run(View.java:14105)
03-09 09:20:14.119: W/System.err(560): at android.os.Handler.handleCallback(Handler.java:605)
03-09 09:20:14.119: W/System.err(560): at android.os.Handler.dispatchMessage(Handler.java:92)
03-09 09:20:14.129: W/System.err(560): at android.os.Looper.loop(Looper.java:137)
03-09 09:20:14.139: W/System.err(560): at android.app.ActivityThread.main(ActivityThread.java:4424)
03-09 09:20:14.149: W/System.err(560): at java.lang.reflect.Method.invokeNative(Native Method)
03-09 09:20:14.164: W/System.err(560): at java.lang.reflect.Method.invoke(Method.java:511)
03-09 09:20:14.164: W/System.err(560): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
03-09 09:20:14.164: W/System.err(560): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
03-09 09:20:14.169: W/System.err(560): at dalvik.system.NativeStart.main(Native Method)

[/HIGH]Please help me.
 
Back
Top Bottom