On Thu, Oct 14, 2010 at 3:26 PM, Raju Bitter
<r.bitter.m...@googlemail.com> wrote:
> I have the same problem:
> http://groups.google.com/group/phonegap/browse_thread/thread/cba7aff686be0b24
>> --
>> You received this message because you are subscribed to the Google
>> Groups "phonegap" group.
>> To post to this group, send email to phon...@googlegroups.com
>> To unsubscribe from this group, send email to
>> phonegap+u...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/phonegap?hl=en?hl=en
>>
>> For more info on PhoneGap or to download the code go to www.phonegap.com
>
<uses-permission android:name="android.permission.INTERNET" />
I get the following exception:
D/PhoneGapLog( 3949): file:///android_asset/www/phonegap.js: Line 579
: JSCallback Error: Request failed.
I/Web Console( 3949): JSCallback Error: Request failed. at
file:///android_asset/www/phonegap.js:579
W/System.err( 3949): java.net.SocketException: Permission denied
W/System.err( 3949): at
org.apache.harmony.luni.platform.OSNetworkSystem.createServerStreamSocketImpl(Native
Method)
W/System.err( 3949): at
org.apache.harmony.luni.platform.OSNetworkSystem.createServerStreamSocket(OSNetworkSystem.java:170)
W/System.err( 3949): at
org.apache.harmony.luni.net.PlainServerSocketImpl.create(PlainServerSocketImpl.java:45)
W/System.err( 3949): at java.net.ServerSocket.<init>(ServerSocket.java:135)
W/System.err( 3949): at java.net.ServerSocket.<init>(ServerSocket.java:89)
I/System.out( 3949): PluginManager.exec(Accelerometer,
getAcceleration, Accelerometer21, [], true)
W/System.err( 3949): at
com.phonegap.CallbackServer.run(CallbackServer.java:107)
W/System.err( 3949): at java.lang.Thread.run(Thread.java:1096)
That means, you should at least set the INTERNET permission for your app.
Raju