Click here to Skip to main content
15,878,809 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
while start the app to pass the string to tcp server(ip and port)
Java
09-03 07:02:11.087: W/System.err(915): 	at dalvik.system.NativeStart.main(Native Method)
09-03 07:02:18.659: W/System.err(915): android.os.NetworkOnMainThreadException
09-03 07:02:18.687: W/System.err(915): 	at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1117)
09-03 07:02:18.687: W/System.err(915): 	at java.net.InetAddress.lookupHostByName(InetAddress.java:385)
09-03 07:02:18.698: W/System.err(915): 	at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
09-03 07:02:18.707: W/System.err(915): 	at java.net.InetAddress.getByName(InetAddress.java:289)
09-03 07:02:18.707: W/System.err(915): 	at com.example.gpstracker.AndroidStartServiceOnBoot$gpstrack$1$1.run(AndroidStartServiceOnBoot.java:314)
09-03 07:02:18.707: W/System.err(915): 	at android.os.Handler.handleCallback(Handler.java:725)
09-03 07:02:18.707: W/System.err(915): 	at android.os.Handler.dispatchMessage(Handler.java:92)
09-03 07:02:18.707: W/System.err(915): 	at android.os.Looper.loop(Looper.java:137)
09-03 07:02:18.728: W/System.err(915): 	at android.app.ActivityThread.main(ActivityThread.java:5041)
09-03 07:02:18.728: W/System.err(915): 	at java.lang.reflect.Method.invokeNative(Native Method)
09-03 07:02:18.737: W/System.err(915): 	at java.lang.reflect.Method.invoke(Method.java:511)
09-03 07:02:18.737: W/System.err(915): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
09-03 07:02:18.737: W/System.err(915): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
Posted
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900