i had build an app that run without problem on other phone but on galaxy s4 crash:
** Activity (main) Pause, UserClosed = true **
** Activity (setting) Create, isFirst = false **
** Activity (setting) Resume **
** Activity (setting) Pause, UserClosed = true **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
** Service (servizio) Start **
Response from server: {"evento":[{"id":"76","nevento":"49","tipoevento":"rapina","i ndirizzo":"via gioberti","cicvico":"","citta":"Foggia","gravita": "basso","attivo":"si","comodo":""}]}
** Activity (main) Pause, UserClosed = true **
** Activity (setting) Create, isFirst = false **
** Activity (setting) Resume **
** Activity (setting) Pause, UserClosed = true **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
** Service (servizio) Start **
servizio_host_responsesuccess (B4A line: 56)
Receive = Response.GetString("UTF8")
android.os.NetworkOnMainThreadException
at android.os.StrictMode$AndroidBlockGuardPolicy.onNe twork(StrictMode.java:1118)
at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java :163)
at libcore.io.IoBridge.recvfrom(IoBridge.java:513)
at java.net.PlainSocketImpl.read(PlainSocketImpl.java :488)
at java.net.PlainSocketImpl.access$000(PlainSocketImp l.java:46)
at java.net.PlainSocketImpl$PlainSocketInputStream.re ad(PlainSocketImpl.java:240)
at org.apache.http.impl.io.AbstractSessionInputBuffer .fillBuffer(AbstractSessionInputBuffer.java:103)
at org.apache.http.impl.io.AbstractSessionInputBuffer .read(AbstractSessionInputBuffer.java:120)
at org.apache.http.impl.io.ChunkedInputStream.getChun kSize(ChunkedInputStream.java:211)
at org.apache.http.impl.io.ChunkedInputStream.nextChu nk(ChunkedInputStream.java:183)
at org.apache.http.impl.io.ChunkedInputStream.read(Ch unkedInputStream.java:155)
at org.apache.http.impl.io.ChunkedInputStream.read(Ch unkedInputStream.java:175)
at org.apache.http.impl.io.ChunkedInputStream.exhaust InputStream(ChunkedInputStream.java:289)
at org.apache.http.impl.io.ChunkedInputStream.close(C hunkedInputStream.java:262)
at org.apache.http.conn.BasicManagedEntity.streamClos ed(BasicManagedEntity.java:179)
at org.apache.http.conn.EofSensorInputStream.checkClo se(EofSensorInputStream.java:266)
at org.apache.http.conn.EofSensorInputStream.close(Eo fSensorInputStream.java:213)
at java.io.InputStreamReader.close(InputStreamReader. java:145)
at org.apache.http.util.EntityUtils.toString(EntityUt ils.java:139)
at anywheresoftware.b4a.http.HttpClientWrapper$HttpRe sponeWrapper.GetString(HttpClientWrapper.java:453)
at sis.cascioli.servizio._host_responsesuccess(serviz io.java:174)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at anywheresoftware.b4a.BA$3.run(BA.java:307)
at android.os.Handler.handleCallback(Handler.java:725 )
at android.os.Handler.dispatchMessage(Handler.java:92 )
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.jav a:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:869)
at dalvik.system.NativeStart.main(Native Method)
can help me
** Activity (main) Pause, UserClosed = true **
** Activity (setting) Create, isFirst = false **
** Activity (setting) Resume **
** Activity (setting) Pause, UserClosed = true **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
** Service (servizio) Start **
Response from server: {"evento":[{"id":"76","nevento":"49","tipoevento":"rapina","i ndirizzo":"via gioberti","cicvico":"","citta":"Foggia","gravita": "basso","attivo":"si","comodo":""}]}
** Activity (main) Pause, UserClosed = true **
** Activity (setting) Create, isFirst = false **
** Activity (setting) Resume **
** Activity (setting) Pause, UserClosed = true **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
** Service (servizio) Start **
servizio_host_responsesuccess (B4A line: 56)
Receive = Response.GetString("UTF8")
android.os.NetworkOnMainThreadException
at android.os.StrictMode$AndroidBlockGuardPolicy.onNe twork(StrictMode.java:1118)
at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java :163)
at libcore.io.IoBridge.recvfrom(IoBridge.java:513)
at java.net.PlainSocketImpl.read(PlainSocketImpl.java :488)
at java.net.PlainSocketImpl.access$000(PlainSocketImp l.java:46)
at java.net.PlainSocketImpl$PlainSocketInputStream.re ad(PlainSocketImpl.java:240)
at org.apache.http.impl.io.AbstractSessionInputBuffer .fillBuffer(AbstractSessionInputBuffer.java:103)
at org.apache.http.impl.io.AbstractSessionInputBuffer .read(AbstractSessionInputBuffer.java:120)
at org.apache.http.impl.io.ChunkedInputStream.getChun kSize(ChunkedInputStream.java:211)
at org.apache.http.impl.io.ChunkedInputStream.nextChu nk(ChunkedInputStream.java:183)
at org.apache.http.impl.io.ChunkedInputStream.read(Ch unkedInputStream.java:155)
at org.apache.http.impl.io.ChunkedInputStream.read(Ch unkedInputStream.java:175)
at org.apache.http.impl.io.ChunkedInputStream.exhaust InputStream(ChunkedInputStream.java:289)
at org.apache.http.impl.io.ChunkedInputStream.close(C hunkedInputStream.java:262)
at org.apache.http.conn.BasicManagedEntity.streamClos ed(BasicManagedEntity.java:179)
at org.apache.http.conn.EofSensorInputStream.checkClo se(EofSensorInputStream.java:266)
at org.apache.http.conn.EofSensorInputStream.close(Eo fSensorInputStream.java:213)
at java.io.InputStreamReader.close(InputStreamReader. java:145)
at org.apache.http.util.EntityUtils.toString(EntityUt ils.java:139)
at anywheresoftware.b4a.http.HttpClientWrapper$HttpRe sponeWrapper.GetString(HttpClientWrapper.java:453)
at sis.cascioli.servizio._host_responsesuccess(serviz io.java:174)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at anywheresoftware.b4a.BA$3.run(BA.java:307)
at android.os.Handler.handleCallback(Handler.java:725 )
at android.os.Handler.dispatchMessage(Handler.java:92 )
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.jav a:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:869)
at dalvik.system.NativeStart.main(Native Method)
can help me