GPS on the Storm

I wrote some Java to get and display GPS information.  While it works well for the curve (8310), it fails on LocationProvider.getInstance (criteria) for the storm.  "Unauthorized GPS".  For those who got this works you have Navigator?  The signing keys?  What is the centerpiece of what makes GPS work on the storm?

Here are my criteria (with attempted 19, anyway):

criteria.setAddressInfoRequired(false);criteria.setAltitudeRequired(false);criteria.setCostAllowed(false);criteria.setSpeedAndCourseRequired(false);criteria.setHorizontalAccuracy(Criteria.NO_REQUIREMENT);criteria.setVerticalAccuracy(Criteria.NO_REQUIREMENT);

Thank you

Ankh

I found that by using signature keys allows me to access GPS on BB Storm information.  Not to sign my application translates into «Unauthorized GPS»  This is true for both my own attempt GPS (now works) and at the GPSDemo found the BB JRE (works also).

Tags: BlackBerry Developers

Similar Questions

  • Is there an app Golf GPS for the Apple Watch series 2 which is "native" to the watch, in other words, should NOT be tied to an iPhone on the golf course?

    Is there an app Golf GPS for the Apple Watch series 2 which is "native" to the watch, in other words, should NOT be tied to an iPhone on the golf course?

    Hello

    You can find this app of interest:

  • Qosmio F55-Q502 cannot use GPS in the Viet Nam and Southeast Asia

    I have a Toshiba Qosmio F55 Q502 with purchase of system built-in GPS Garmin from the United States.
    But when I bring it to the Viet Nam and try to use the GPS, it does not work.

    I open Garmin Mobile PC, just Americans and Europeans of the cards.
    I try to activate the GPS, but the satellite always signal empty.

    I tried to go many places with view of clear skies but cound around ' nt captures the satellite signal.

    If this GPS is Globe Positioning system which means it can be used anywhere in the world.
    I do not know may be my GPS have the problem or the GPS is unusable in VietNam.

    My laptop just to buy a few days and I have not tried the GPS in US before.
    Can someone help me solve this problem?

    GPS should be worldwide.

    You can use a normal GPS for your car? Or as in the Nokia N95 GPS phone?

  • WNDR3700 not internet connection due to the storm

    My modem to broadband ISP (ARRIS TM822) was killed during a storm, it was replaced with the same model, and at the beginning, when I plugged my router, the wireless worked well. I'm not in the settings or something, just plugged in, and it worked perfectly. However the next morning, I was unable to connect to the internet.

    I did a lot of troubleshooting:

    • Firstly, I fed all the way down, pulling cables, batteries on the modem, etc and started in sequence. This is done several times without success.

    • I updated the firmware on the router, done the commissioning, no luck

    • Connected on the router, using the routerlogin.net and run the configuration wizard. Got the message saying 'No Internet connection detected' ' Please check connection to the modem cable/DSL and of Internet WAN port.

    • Did a factory reset and used the resource CD. To the tab of preparation, got 'No adapter' ' is either disabled or no Ethernet card Ethernet card is installed on this computer...» "I've updated the driver for the LAN on my computer (it's something RealTek) and uninstalled and re-installed. Same result.

    • In addition, the port is very well. The LED indicator for the Ethernet port is shining green on the router and the computer, the port "lights" to show a good connection. It also works very well when it is connected directly to the modem.

    • The State of the computer shows LAN network data is sent and received when it is connected to the router, quite strangely, even if I can't connect to the internet.

    Thus, it has been a long and frustrating day. I'd appreciate help on solving this problem.

    Thanks in advance.

    Hi Elaine,.

    I couldn't make it work. I pretty well confirmed, however, it is the router. I tried another router and it works very well with the modem, and I had a friend check my router on its network. It did not work there either. I'll have to buy another.

    Maybe it was damaged during the storm that killed the modem. Just very strange that he worked for a while before stopping and that he was not completely killed as the modem, just maybe the internet port. Both have been connected to a surge protector as well! Maybe I can get compensation from the manufacturer. Well...

    Thank you for following it upwards.

  • Microsoft Streets & Trips will update the GPS on the dashboard in my 2008 Dodge minivan?

    I have a Dodge Caravan in 2008, with the GPS on the dashboard of my concert. I want to update the software, but don't want to pay the garage up to do. Microsoft Streets and Trips would work on my GPS?

    Hello shaun1959 apache.

    There is a forum for Streets & Trips that may be better able to solve your problem.
    Click on the link below to ask your question in the forum. http://social.Microsoft.com/forums/en-us/streetsandtrips/threads

    Sincerely,

    Marilyn

  • Does anyone know how to connect a Garmin GPS to the EOS 7 d? The camera does not see.

    When I plug in my Garmin GPS on my EOS 7 d and go into the GPS settings in the menu. The camera does not see all I get is "GPS not connected indication." The GPS turned on and functional. Someone at - it ideas?

    Once I had an application that you had photographed the display of a GPS device (the type that a rider could use because they observe "breadcrumbs" trail of your itinerary) on #1 chassis (they wanted to just make sure that you have a picture of the time on the GPS display.

    You then go about your day taking photos with the GPS running indepdently.

    At the end of the day, you import the images and it asks you to enter the time displayed on the first photo.  It uses the display of GPS time and calculates the offset of the time, the camera recorded in the EXIF data (just in case the clocks were not perfectly synchronized).  Then she uses the breadcrumbs on the GPS track and apply the GPS position, data for each photo from your camera roll.

    It was a bit complicated and app tried to take over your App "photo management" (which I didn't... "I wanted just the position data added to the existing images), but it worked.

    The fact is... I was able to add correction of position information to each photo and it did not require actually integrate the GPS to the camera (it was quite after the fact).

    Today, I own the module GPS Canon (MUCH more convenient), so I don't deal with that more.

    hikeray2 wrote:

    When I plug in my Garmin GPS on my EOS 7 d and go into the GPS settings in the menu. The camera does not see all I get is "GPS not connected indication." The GPS turned on and functional. Someone at - it ideas?

  • Question about the features of the browser inner in the storm.

    BB Storm JDE 4.7

    Can someone tell me if the internal browser is entirely html 5.0 compatible?, or comment on my next statement...

    I managed to run 'certain' iphone web applications that use the tag, if clearly who is supported to a certain extent, as is Javascript. However, some fanciful iPhone webapps do work quite well on the storm.

    Understand what the browser is capable of is very important, so we can use it to its limit in applications where we can take advantage of what is already there, combining with javascript AND j2me.

    Thank you

    -DOnald

    I finally found the answer... we don't really support the tag , although if we supported it, the power we would have in our browser would be so much more. I really can't believe that we do not support.

    Check out this site and click on any example. This shows what could be possible with a little bit of browser capability added to our browser... a single tag actually...

    http://ejohn.org/apps/processing.js/examples/basic/

    This closes this. I have to Advisor to the blackberry 'bosses' as a feature that we must compete.

    THX

    D

  • Orientation of the storm?

    There are messages here on this subject; Apparently, they have been removed.

    It looks like the information on the direction of the storm should be available via the AccelerometerData and related objects.  However, it seems that they are not fully implemented yet.  Is there another way?

    just implement sublayout in your screens, and it will be called when the device is rotated

    protected void sublayout(int width, int height)
    {
        super.sublayout(width, height);
        //calculate some new ui sizing dimensions, etc.
    }
    
  • keyboard on the Storm is suppressed by the Global screen

    Hello

    I want to display a pop-up screen after each phone call. The user can do some simple entries in this screen.

    I did it in the PhoneLogListener callLogAdded as follows:

    public void callLogAdded (CallLog cl)

    {

    ...

    Synchronized (application.getEventLock ())

    {

    If (NeedShowThisScreen())

    {

    UI UiEngine is Ui.getUiEngine ();.

    Screen AfterPhoneScreen = new AfterPhoneScreen();

    ui.pushGlobalScreen (screen, 1, UiEngine.GLOBAL_QUEUE);

    }

    }

    }

    It works fine on the other models other than Storm.

    The Storm, even I put emphasis in the editbox in this screen, the keyboard is displayed.

    What have I forgotten?

    Thank you

    Jerry

    I think I solved it.

    This is because the overall screen in the middle of the screen by default, so there is not enough room for the keyboard.

    I just move the screen up by crushing the sublayout() of the popupscreen.

    It seems ok, except the popupscreen room is much smaller, I need to reassign the screen layout.

  • GPS of the poll seems to block on setLocationListener

    I try to start the GPS of the poll, but setLocationListener seems to hang.  The application just hangs there.  It's on a device of Torch 9810.  I use 6 SDK.  I don't get any errors, it just seems to stop.  After MUCH research, I came up with this:

    I have static variables of provider and criteria in my main application class.

    To start the voting, the word is setupGpsPolling();

    I put a listener of the situation with my interval.

    I have a thread that checks the latest patch.  If the time is more than 20 minutes, it resets by calling setupGpsPolling();

    In my main application class:

       private static BlackBerryLocationProvider _provider = null;
        private static BlackBerryCriteria _criteria;
    ......
    
        public static void setupGpsPolling() {
            LocationInfo.setLocationOn();
            if (_provider != null) {
                _provider.setLocationListener(null, 0, 0, 0);
                _provider.reset();
                _provider = null;
            }
    
            try {
                _criteria = new BlackBerryCriteria();
                _criteria.setGPSRestartInterval(600, 0);
                _criteria.setSpeedAndCourseRequired(true);
                _provider = (BlackBerryLocationProvider) LocationProvider.getInstance(_criteria);
                _provider.setLocationListener(new LocationListener(), 300, -1, 0);
            } catch (LocationException e) {
                System.out.println(e.getMessage());
            }
        }
    

    LocationListener

    public class LocationListener implements javax.microedition.location.LocationListener{
    
        private static long lastFix = 0l;
        private static Object lock = new Object();
    
        public void locationUpdated(LocationProvider provider, Location location) {
            try {
                BlackBerryLocation loc = (BlackBerryLocation) location;
                double longitude = location.getQualifiedCoordinates().getLongitude();
                double latitude =location.getQualifiedCoordinates().getLatitude();
                float speed = location.getSpeed();
                float course = location.getCourse();
                setLastFix(location.getTimestamp());
                GPSLocation gps = new GPSLocation(longitude, latitude, speed, course, location.getTimestamp());
                gps.setStatus(loc.getStatus());
                gps.setError(loc.getError());
                gps.process();
            } catch (Exception e) {
                System.out.println(e.getMessage());
            }
        }
    
        public void providerStateChanged(LocationProvider provider, int newState) {
    
        }
    
        public static void setLastFix(long lastFix) {
            synchronized (lock) {
                LocationListener.lastFix = lastFix;
            }
        }
    
        public static long getLastFix() {
            synchronized (lock) {
                return lastFix;
            }
        }
    
    }
    

    My thread checker:

    public class GPSThread extends Thread {
    
        public GPSThread() {
        }
    
        public void run() {
            while (true) {
                try {
                    Thread.sleep(300000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                if ((System.currentTimeMillis() - LocationListener.getLastFix()) > (20 * 60 * 1000)) {
                    App.setupGpsPolling(); //reset our location listener
                }
            }
    
        }
    }
    
    _provider.setLocationListener(new LocationListener(), 300, -1, 0)
    

    Should have been

    _provider.setLocationListener(new LocationListener(), 300, -1, -1)
    
  • tilt event on the storm

    This may be a simple question and answer elsewhere, but here goes.  How can my program know that the (storm) unit tilted? I hope for some event types and to endure, I can use the event handler to redraw all my items screen to reflect new dimensions of the tarp.   Something like a listener of filed amendments attached to every change in tilt.

    Thank you.

    There is no "tilt event", but your sublayout() method is called when the unit switches from portrait to landscape (and vice versa). This gives you the opportunity to rearrange the fields to accommodate the new screen real estate.

  • How do I get the acceleration and GPS at the same time?

    Goal: Get an acceleration and GPS at the same time

    Current situation: I can get acceleration or GPS. When I try to get the data, the code ends.

    Mini Code

    If (bps_event_get_domain (event) == sensor_get_domain()) {}
    handle_acceleration_data();
    }
    If (bps_event_get_domain (event) is {geolocation_get_domain()})

    handle_gps_data();

    }

    Question: Anyone know how to get data in an event or other methods?

    Thank you for your attention,

    Your code shows event handling, but not the request or to obtain events.  Can you show more of your code?  The following should work (note there is no error checking):

    sensor_request_events(SENSOR_TYPE_ACCELEROMETER);
    geolocation_set_period(1);
    geolocation_request_events(0);
    
    bps_event_t *event;
    while (true) {
    
        bps_get_event(&event, -1);
        if (!event) {
            continue;
        }
    
        if (bps_event_get_domain(event) == sensor_get_domain()) {
            handle_acceleration_data(event);
        } else if (bps_event_get_domain(event) == geolocation_get_domain()) {
            handle_gps_data(event);
        }
    }
    
  • Time increasing while sending data via http repeatedly on the storm

    Hi all!

    My application sends data (in general, this is a picture of ~ 1200 Kb) to the server via http.

    The data are sent ok, but the when I send data several times (without leaving the application) the time devoted to writing the data in the outputStream develops. On first use, it takes usually ~ 50 seconds, the second seconds of ~ 70, the third seconds from ~ 100... I see this problem only on the storm, others (Curve 8900, Bold, Tour) are OK. The url is used on Storm is: http://xxxxxxxxxxxxx.com/mobile/mobile.asmx;deviceside=true

    Here is the code snippet:

    private static WSResponse send(byte[] xmlBytes, WSResponseParser parser) throws Exception {
    
            HttpConnection connection = null;
        OutputStream outputStream = null;
    
           try {
                connection = (HttpConnection)Connector.open(WifiChecker.getURL(URL), Connector.READ_WRITE, true);
    
                connection.setRequestMethod(HttpConnection.POST);
                connection.setRequestProperty("Content-Type", CONTENT_TYPE);
                connection.setRequestProperty("Content-Length", String.valueOf(xmlBytes.length));
    
                outputStream = connection.openOutputStream();
    
                int offset = 0;
                int chunk = DATA_CHUNK_SIZE; // 1024
                int len = xmlBytes.length;
                while (offset < len) {
                    if (offset + chunk >= len) { // avoiding OutOfBounds Exception
                        chunk = len - offset;
                    }
                    outputStream.write(xmlBytes, offset, chunk);
                    offset += chunk;
                }
    
                xmlBytes = null;
    
                String response = getResponseAsSting(connection);
    
                WSResponse wsResponse = null;
                try {
                    wsResponse = parser.getWSResponse(response);
                } catch (Exception e) {
                    throw ApplicationException.invalidWsResponse();
             }
    
                if (!wsResponse.isSuccess()) {
                    throw new WSFailureException(wsResponse);
                }
    
                return wsResponse;
    
            } finally {
                IOUtils.safelyCloseStream(outputStream);
                IOUtils.safelyCloseStream(connection);
                if (xmlBytes != null) {
                    xmlBytes = null; // notify VM it can safely free the RAM
                }
            }
    

    I thought it may be a memory problem, so I manually cancel xmlBytes, but which does not solve the problem.

    Any ideas?

    Thanks in advance,

    Arhimed

    P. S.

    There is no question about Simulator, only on a real device of the storm.

    MSohm, thanks for your response.

    Fortunately, I have just fixed the problem. The problem was not in the code above, but in the code that made the xmlBytes. I converted bytes of the image base64 and looks like I did it dangerously on the use of the memory.

    Thanks again for your attention to this thread!

  • Menu with tabs at the bottom in the storm (similar to the Media Explorer and other applications)

    Hi all

    In the storm, we have with tab menu in most applications provided by RIM.

    Have we not separate API to achieve? or have us create image icons and place them in the bottom of the screen and write functions to the click or on the update. ?

    Thank you

    Sandeep

    P.S. - under the direction to remove the photo. It was not displayed. But I guess that the description is clear.

    RIM does not expose this API they used for their applications.

    We had to invent our own class "Toolbar."

  • Orientation of the storm and code signing

    is it possible to change the orientation of the screen of the storm without using the API signed?

    Yes, turn on the phone.

    OK in a sense non-joking, if you're talking about defining what directions are allowed, you need key for use UiEngineInstance.setAcceptableDirections of signature.

    You need it for the view class, but you can get the values themselves, so that you don't need to actually use the class, thus avoiding the requirement of signing key.

Maybe you are looking for

  • Transfer photos from PC to iMac

    Hello Two years ago, I decided to scan and put all our family photos in digital format (some will to the 1890s), which I just finished several months ago.  I used a Windows operating system and the PC to manage the process. Recently, I poured out my

  • Satellite A100 - monitor turns off after reboot

    Not here a load of HARD drive, also if the output of the BIOS not are displays logo. Just how to work again with turn off phone then turn on again. I also try external VGA display with cable (VGA VGA) have same problem. I try to put the connector aga

  • Y460 Switchable Graphics

    Hi guys,. I bought the IdeaPad Y460. It has switchable graphics. I tried to do a right click on the battery icon, however, the functionality of the switch graph showed no upward. I don't find it anywhere either. The battery on my laptop button when y

  • HP ENVY TouchSmart 15 t-j000 Quad Edition PC laptop

    I'm looking for except one of the new envys with haswell processors.  But after I bought the laptop I want to replace the HDD with a SSD, this new body of the laptop seems really thin and I was wondering if someone again for sure if I'll be able to e

  • Replacement for SPA9000 &amp; SPA400 combo?

    the SPA8800 did the same thing that made the SPA9000 & SPA400 combo, outside voice mail, what do I know, it don't? I see the series UC300 is suggested as a replacement for the SPA9000 & SPA400 combo, but it's overkill & expensive for my needs. I just