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: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: BB Storm GPS

You cannot send an SMS on Verizon using MessageConnection - you'll need to implement DatagramConnection for this network.

 

See this thread:

 

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=621&query.id=1852...

 

New Developer
Posts: 86
Registered: ‎11-19-2008
My Device: Not Specified

Re: BB Storm GPS

Wow...that's great to know! Not being in the USA and not being able to test a Verizon phone, I was unaware of that!

I'm trying the code you linked asap..thanks a lot for the tip!!!

New Developer
Posts: 86
Registered: ‎11-19-2008
My Device: Not Specified

Re: BB Storm GPS

uh...should I also intercept SMS messages in some special way?

I'm using MessageConnection.receive right now...

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: BB Storm GPS

[ Edited ]

MessageConnection is problematic - only one application can create a MessageConnection. This means that the first program to grab the connection succeeds, all others fail.

 

If you use DatagramConnection on "sms://" you do not have this restriction.

 

So, if you have absolute control over the client then MessageConneciton is OK, but if not you'll be fighting every other 3rd party application that tries to listen for SMS traffic (and there are a bunch of them!)

 

Message Edited by RexDoug on 12-21-2008 12:17 PM
New Developer
Posts: 7
Registered: ‎12-14-2008
My Device: Not Specified

Re: BB Storm GPS

I got my keys today, but can't seem to quickly find out which packages require RRT so that I can include something from it to get the code signing tool to sign with RRT. Any help would be appreciated.

 

Randall

 

New Developer
Posts: 86
Registered: ‎11-19-2008
My Device: Not Specified

Re: BB Storm GPS

Just to let you know that the GPS code listed previously worked perfectly on the Verizon Storm!

BTW...my GPS code was correct from the beginning, what was wrong was the SMS code that's different under Verizon Smiley Happy

I discovered this through this post though, so great work guys!

New Developer
Posts: 7
Registered: ‎12-14-2008
My Device: Not Specified

Re: BB Storm GPS

I got it working now also. I finally stumbled onto doing a RuntimeStore.getRuntimeStore(); to get the signing key to sign wtih RRT.

 

Thanks for all the help. Now we just need to tell Google what to do so they can fix Google Maps!

 

Randall

New Developer
Posts: 26
Registered: ‎12-03-2008
My Device: Not Specified

Re: BB Storm GPS

I've updated my blog with my experience with these issues. Setting up GPS on the BB Storm is VERY convoluted, difficult, poorly documented, and frustrating.

 

http://www.riccomini.name/Topics/Mobile/BlackBerry/BlackBerryStormGPS/

 

Contains WORKING BB Storm + Verizon + GPS/Data plan code.

BlackBerry/Mobile Enthusiast - http://www.riccomini.name
Developer
Posts: 723
Registered: ‎03-12-2009
My Device: Playbook

Re: BB Storm GPS


idonen wrote:

Ok guys, this is what I'm using, and it is currently working fine on a Storm on Verizon:

 

criteria.setCostAllowed(false);
criteria.setPreferredPowerConsumption(Criteria.POWER_USAGE_MEDIUM);
criteria.setPreferredResponseTime(16);
criteria.setHorizontalAccuracy(100);

lp = LocationProvider.getInstance( criteria );               

lp.setLocationListener(new LocationListenerImpl(), 2, -1, -1 );


From previous playing around with CDMA providers (Sprint and Verizon), it can be very tricky getting the right combination. Even the interval, timeout and maxage in the setLocationListener call is difficult to get right, because often values you think would work don't. For example,  in theory to keep the GPS hot you should be able to use any interval less than 10, but in our experimenting, anything more than 2 was returning very inconsistent results. I've never tried using longer intervals, since we need to keep the chip active for our application. 


 

This works beautifully.   Thank you. VZ BB Storm.

Developer
Posts: 40
Registered: ‎03-29-2009
My Device: Storm 9550
My Carrier: AT&T

Re: BB Storm GPS

How exactly does this work?

 

 

criteria.setCostAllowed(false);
criteria.setPreferredPowerConsumption(Criteria.POWER_USAGE_MEDIUM);
criteria.setPreferredResponseTime(16);
criteria.setHorizontalAccuracy(100);

lp = LocationProvider.getInstance( criteria );               

lp.setLocationListener(new LocationListenerImpl(), 2, -1, -1 );

 

Are people actually cutting and pasting in code that they're using, or just typing it in (and potentially making translation errors)?

 

The API docs say that preferred response time is in milliseconds.  How can setting response time to 16 yield a result, especially in autonomous mode?  Is the implementation ignoring that value?