Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Reply
Highlighted
New Developer
Posts: 9
Registered: ‎01-30-2010
My Device: 8900
My Carrier: Airtel

javascript geolocation API having issue on android app ported to BB10 os

Hi,

 

I have an android app in which i have to show user's current location on google map. I am using javascript geolocation API to do this. WebView is able to show the current lat, long but shows following error as well:

 

02-07 13:24:04.808: E/SQLiteLog(13574359): (14) cannot open file at line 30176 of [00bb9c9ce4]
02-07 13:24:04.808: E/SQLiteLog(13574359): (14) os_unix.c:30176: (2) open(/data/data/android-client/CachedGeoposition.db) -
02-07 13:24:04.808: D/WebKit(13574359): ERROR:
02-07 13:24:04.808: D/WebKit(13574359): SQLite database failed to load from /data/data/android-client/CachedGeoposition.db
02-07 13:24:04.808: D/WebKit(13574359): Cause - unable to open database file
02-07 13:24:04.810: D/WebKit(13574359): external/webkit/Source/WebCore/platform/sql/SQLiteDatabase.cpp(71) : bool WebCore:Smiley FrustratedQLiteDatabase:Smiley Surprisedpen(const WTF:Smiley Frustratedtring&, bool)
02-07 13:24:04.816: E/SQLiteLog(13574359): (14) cannot open file at line 30176 of [00bb9c9ce4]
02-07 13:24:04.816: E/SQLiteLog(13574359): (14) os_unix.c:30176: (2) open(/data/data/android-client/GeolocationPermissions.db) -
02-07 13:24:04.816: D/WebKit(13574359): ERROR:
02-07 13:24:04.816: D/WebKit(13574359): SQLite database failed to load from /data/data/android-client/GeolocationPermissions.db
02-07 13:24:04.816: D/WebKit(13574359): Cause - unable to open database file
02-07 13:24:04.817: D/WebKit(13574359): external/webkit/Source/WebCore/platform/sql/SQLiteDatabase.cpp(71) : bool WebCore:Smiley FrustratedQLiteDatabase:Smiley Surprisedpen(const WTF:Smiley Frustratedtring&, bool)
02-07 13:24:07.061: E/Web Console(13574359): Uncaught TypeError: Object [object Object] has no method 'setCurrentLocation' at file:///android_asset/www/myPage.html:20

 

If i run the same app in an android device, it works beautifully. 

 

Is there something more i need to do on BB10 device?

 

Please let me know if i am missing something.

 

Thanks