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
Developer
Posts: 39
Registered: ‎02-06-2010
My Device: 9000
My Carrier: devloper

how can i get current location in my app

 

hey all,

 

please give me code of how to get current location in my app,

 

Thanks

~dhvani

 

 

Developer
Posts: 16,984
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: how can i get current location in my app

you can use a http://www.blackberry.com/developers/docs/6.0.0api/javax/microedition/location/LocationProvider.html

either use getLocation (careful, it is a blocking operation, do not use from the event thread) or add a location listener.

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter