Hi,

I created a simple client socket from my Activity, but it fails. I am
running this activity in emulator and server runs on PC(its a different
application without Android stuff).

*clientSock = new Socket("127.0.0.1", 30001);*

logcat shows
java.net.SocketException: permission denied <maybe missing INTERNET
permission>

If I enable permission for my Activity(android.permission.INTERNET), my
Activity constructor itself not called and logcat shows following info.
Permission Denial: starting Intent < flg=0x10000000
cmp=com.example.client/.MyClientActivity > from null
<pid=-1, uid=-1> requires android.permission.INTERNET.

Any suggestion on how to resolve this issue?

Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to