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

Adobe AIR Development

Reply
Contributor
Posts: 36
Registered: ‎08-30-2010
My Device: 9500, PlayBook (arriving soon)
My Carrier: Vodafone

PlayBook GPS

As I understand it PlayBook does not have GPS inbuilt yet. Can I utilise the GPS on a tethered Torch or Storm?

Developer
Posts: 2,462
Registered: ‎11-04-2010
My Device: Bold 9700

Re: PlayBook GPS

key mike,

 

as i understand it and from todays webcast the GPS will be on the device and should not rely on having a phone. and currently there are no API's to connect to other BlackBerry phones through bluetooth or any other way. we're still waiting for details on that. As for testing the GPS they are working on a way to do GPS testing without requiring actual GPS data and set up "dummy" values.

J. Rab (Blog) (Twitter)
--
1. If you liked my post or found it useful please click on the thumbs up and provide a Like!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!

Approved Apps: OnTrack | ssShots | Hangman
Contributor
Posts: 36
Registered: ‎08-30-2010
My Device: 9500, PlayBook (arriving soon)
My Carrier: Vodafone

Re: PlayBook GPS

Thanks Rab. It was me that asked the GPS questions they answered in the webcast. I had posted this forum question before they did. Hopefully they will add GPS support to the PlayBook simulator soon so it uses ficticious GPS data similarly to the BlackBerry simulators.

Highlighted
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: PlayBook GPS

I think they said that possibly the best they can do in the simulator is to set a lat/lon, so moving updates might not be possible.  Would be nice if it could take a XML script to simulate updates.  Something like:

 

<gps>

  <update delay="2000">

    <lat>34.000</lat>

    <lon>-115.5000</lon>

    <speed>34</speed>

    <altitude>160</altitude>

    <heading>32.5</heading>

  </update>

  <update delay="12000">

    <lat>34.0543</lat>

    <lon>-115.5245</lon>

    <speed>39</speed>

    <altitude>162</altitude>

    <heading>32.7</heading>

  </update>

...

</gps>

Developer
Posts: 2,462
Registered: ‎11-04-2010
My Device: Bold 9700

Re: PlayBook GPS

hey john,

 

following that you might be able to create a function to "simulate" moving updates. it'd involved a series of event listeners and timers but should get the job done.

J. Rab (Blog) (Twitter)
--
1. If you liked my post or found it useful please click on the thumbs up and provide a Like!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!

Approved Apps: OnTrack | ssShots | Hangman
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: PlayBook GPS

Yes, I was going to do that.

Contributor
Posts: 36
Registered: ‎08-30-2010
My Device: 9500, PlayBook (arriving soon)
My Carrier: Vodafone

Re: PlayBook GPS

Further to my questions about GPS support on the PlayBook and its simulator does anyone know if the device and/or simulator has compass support and which namespace I use to access it?

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: PlayBook GPS

GPS returns the current heading/bearing.  Is that what you are looking for?

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: PlayBook GPS

With respect to compass support, there have been no official statements made regarding compass support.  In fact, whether there's even GPS support should still be considered an open question, given that there have been no official RIM statements regarding the matter.

 

The only sensors that (I believe) are official, apart from basic audio/video stuff, are the multitouch screen, the accelerometer, and ... well, nothing else that I'm aware of.

 

A GPS was mentioned by some of the developer support staff in one or two of the webcasts, but I still say the way they said it leaves open the possibility they will just point to the tethered BlackBerry and say "that's where the GPS is".

 

And so we wait.  I really expected an announcement at CES with more on this, but now I have to think there may still be real uncertainty about how much they can pack in there and maintain sensible battery life, or maybe it's about price.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Contributor
Posts: 36
Registered: ‎08-30-2010
My Device: 9500, PlayBook (arriving soon)
My Carrier: Vodafone

Re: PlayBook GPS

Thanks Peter.

 

That was the impression I got too. I have been finding it difficult to get definitive information on any location based functions be it coarse location, fine location or compass. I don't think much of my chances of being able to build a location based app for the PlayBook because even if these functions are accessible there does not seem to be any information from RIM about how to implement them.

 

Please prove me wrong RIM, if the PlayBook API has GPS, cell tower or compass classes let us know how we can get at it so we can build some stunning apps.

 

Regards,

 

Mike