Al wrote:
> My app has the INTERNET permission but today I noticed a new bug
> report in my dev console:
> 
> java.lang.SecurityException: Permission denied (maybe missing INTERNET
> permission)
>   at
> org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(OSNetworkSystem.java:-2)
>   at
> org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocket(OSNetworkSystem.java:
> 131)
>   at
> org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:
> 247)
>   at
> org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:
> 535)
>   at java.net.Socket.connect(Socket.java:1054)
>   at net.andchat.Backend.ServerConnection
> $Connection.run(ServerConnection.java:937)
> 
> My app has the correct permission and I've never come across this
> error or had it reported to me before. Seems really strange. Anyone
> know what could cause this?

Are you sure you have the permission in the proper spot in your
manifest? I have not seen this error except when the permission element
was missing or malformed.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: 4-6 June 2010: http://guruloft.com

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

Reply via email to