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

Java Development

Reply
New Contributor
zerofox
Posts: 5
Registered: ‎10-12-2011
My Device: Torch

alternative get location using browser support with HTML5 but catch the location with native BB SDK

Hello,

 

i'm trying to get location by browser and i want to make a script with HTML5 features to get the location such as in the background i will open  a link ex : http://html5demos.com/geo and get the value latitude and longitude with java, is it possible?alsowhen using this features geolocation in HTML5 it asking permission,  how to bypass this.

 

reason why i'm using this option to get location.

1. gps in device is really slow to get the user location

2. using cell site also depends on the carrier wether it's supported 

3. using geolocation api https://www.google.com/loc/json with passing gsm parameter (mnc,mcc,lac,cellid), unfortunately it doesnt work anymore

 

is it possible get the value when open the browser to the script HTML5 geolocation features, i think this using javascript right, can we get the response latitude and longitude to be used in java?

 

Thanks, greatly appreciately for your response.

 

nb: i'm developing the app with BB SDK, not with HTML5

 

 

 

 

 

 

 

New Contributor
zerofox
Posts: 5
Registered: ‎10-12-2011
My Device: Torch

Re: alternative get location using browser support with HTML5 but catch the location with native BB SDK

anyone can give any thought about this :Angel: