Geolocation on Simulator 9550 5.0.0.71 3, 9800 6.0.0.227 and the device with OS 6.0

Hello

I'm playing with a really simple WebWorks app that aims to get the geolocation of the user.

The related javascript code is:

 // location related functions:
function getLocation() {
    if (navigator.geolocation) {
        var options;
        navigator.geolocation.getCurrentPosition(geolocationSuccess, geolocationError, options);
    } else {
        alert("HTML5 geolocation is not supported.");
    }

}

function geolocationError(error) {
    alert("An unexpected error occurred [" + error.code + "]: " + error.message);
}

function geolocationSuccess(position) {
    //Extract information about the users current position:
    var time = position.timestamp;
    var coordinates = position.coords;

    //Retrieve geographic information about the GPS fix:
    var lat = coordinates.latitude;
    var lon = coordinates.longitude;

    displayLocation(lat, lon);
}

function displayLocation(latitude, longitude) {
var message = "Your current location is ";
document.getElementById("locationDisplay").innerHTML =
message + "latitude: " + latitude + ", "
+ "longitude: " + longitude;
}

However, the geolocation features display location Simulator 9800 information 6.0.0.227 (I put location manually of "Simulator"-> "GPS Position") and device with os 6.0 (I did turn on Javascript and allow javascript support), but it works on Simulator 9550 5.0.0.71 3.

I also find that my smart phone BlackBerry with os 6.0 browser cannot display some html5 (i.e.http://merged.ca/iphone/html5-geolocatio) demonstration sites location information

All ideas

I have a Storm 2 and a key

They respond very differently to the GPS tracks

I found sort of the problem as if you are in the open air or not

My Storm 2 have no idea where I am if I sat inside my house

My flashlight - gimme a sec - well - that failed too

My Droid knows exactly where I am, my Nokia thinks I live 250 miles

I think that we live in is too much running

Go outside (with the exception of Nokia) and you are placed with precision

Inside, we have strong signals from WiFi, compuer (s) and other things that stop at the GPS lock

Today I went to my wife, it's a connection perfect area without radio - not even a chance to pick up WiFi-

I took a taxi home - perfect connecton (maps is cool when you can tell the driver how fast he is dong )

Last night I had a meeting with the boss - once again, perfect positioning

The only thing that is different is that I'm not surrounded by radio parasite (all devices work on radio - WiFi, GPS, Bluetooth - you name it)

Then...

Just try it - walking down the street, turn over the cards, I'm positive you get a few feet away where you are

Try the same thing with radio pullution (reception, WiFi, etc.) and the GPS can't find anything

Believe me - work I am personal watercraft requires precise locations so it was annoying me as well

At least I have the solution

---> Kudos - click!

Tags: BlackBerry Developers

Similar Questions

  • Http method Post is not working in the Simulator (SDK 7.0) and not in the device with BB 5.0

    I am a novice in the development of BB.

    I tried to implement a simple Http Post request, but when running it in the Simulator (SDK 7.0), he gave an IOException.

    I've first implemented the Http Get request and was getting the same error but that was resolved by adding "; deviceSide = true'on demand.

    But while making the Post request parameters(username and password) were supposed to be written to outputstream open after successfully HttpConnection. I get the answer I used to get when I send two parameters as null.

    But the app even when built against JRE 5.0 crashes.

    Hi simon, peter

    I made changes to my connection as as well as u say it, but still no idea if I am wrong, if I do one.

    Now without using any suffix his run on my device but same answer as it was a GET request.

    A modified version of class ServerConnection (in post above)

    package com.httppostdemo.classes;
    
    import java.io.ByteArrayOutputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    
    import javax.microedition.io.HttpConnection;
    
    import net.rim.device.api.io.transport.ConnectionDescriptor;
    import net.rim.device.api.io.transport.ConnectionFactory;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.Dialog;
    
    public class HttpPostConnection extends Thread {
    
        private String mUrl = null;
        private byte[] mParams = null;
    
        public HttpPostConnection(String iUrl, byte[] iParams) {
            mUrl = iUrl;
            mParams = iParams;
        }
    
        public void run() {
            super.run();
            ConnectionFactory connectionFactory = new ConnectionFactory();
            ConnectionDescriptor connDescriptor = (ConnectionDescriptor) connectionFactory
                    .getConnection(mUrl);
            HttpConnection connection;
            OutputStream outStream;
            InputStream responseData;
            final ByteArrayOutputStream baos;
            int responseCode;
            int bytesRead;
    
            if (connDescriptor != null) {
                try {
    
                    connection = (HttpConnection) connDescriptor.getConnection();
                    connection.setRequestMethod(HttpConnection.POST);
                    connection.setRequestProperty("Content-Type",
                            "application/xwww-form-urlencoded");
                    connection.setRequestProperty("Content-Length",
                            String.valueOf(mParams.length));
    
                    outStream = connection.openOutputStream();
                    outStream.write(mParams);
                    outStream.close();
    
                    responseCode = connection.getResponseCode();
                    if (responseCode != HttpConnection.HTTP_OK) {
                        connection.close();
                        return;
                    }
    
                    baos = new ByteArrayOutputStream();
                    responseData = connection.openInputStream();
                    byte[] buffer = new byte[10000];
                    bytesRead = responseData.read(buffer);
                    while (bytesRead > 0) {
                        baos.write(buffer, 0, bytesRead);
                        bytesRead = responseData.read(buffer);
                    }
                    UiApplication.getUiApplication().invokeLater(new Runnable() {
    
                        public void run() {
                            Dialog.alert(new String(baos.toByteArray()));
                        }
                    });
                    baos.close();
                    connection.close();
    
                } catch (final Exception e) {
                    UiApplication.getUiApplication().invokeLater(new Runnable() {
    
                        public void run() {
                            Dialog.alert("Exception :: " + e.getMessage());
                        }
                    });
                }
    
            }
        }
    
    }
    
  • image in SVG shows it on the Simulator, but not on the device

    Hi all

    I put theelement in an SVG file with an image that I pick up store or the SD card. I can see the image set on the Simulator, but am not able to see it on the device.

    Here is the code snippet I definition of the element in the image:

    SVGElement "newelement" = (SVGElement) _document.createElementNS (SVG_NAMESPACE_URI, "image");
    newElement.setTraitNS (XLINK_NAMESPACE_URI, "href", dittos);
    newElement.setFloatTrait ("x", 0);
    newElement.setFloatTrait ("y", 0);
    newElement.setFloatTrait ("width", Display.getWidth ());
    newElement.setFloatTrait ("height", Display.getHeight ());
    _svg. AppendChild (newelement);
    Invalidate();

    Thanks in advance.

    ~ Shri

    It was with the size of the Image. Too big a picture and the device wont set it to SVG canvas.

    If the scale down the image and set the image if you want to set asin SVG.

  • How to use the device as a simulator.

    Hi all

    Can someone tell me how to use the device (with my development pc) as Simulator.

    Whenever I need to check the appilcation in device of signed files .cod that is compiled in the Simulator.

    Because I got the outofmemory error in the device rather than simulator.

       

    Thus, any solution which signed without how can I check my direct request to the device itself. Any setting in preferences or etc...

    Thank you

    Tejas

            

    The only way you should not sign the cod is if no controlled classes/interfaces are used. The easy way to find out is to open the SignatureTool and see if your application requires signature. Otherwise this says icefrost1 's good enough solution.

  • How to create a delay between the start of the signal simulated one and the other?

    Hello

    As a first step, I am relatively new to Labview.

    I am trying to use Labview for 2 different output square waves (different frequencies, amplitudes, etc.).  I've implemented 2 signals to simulate different and do them in a While loop, however, when I start the program, I need a square to begin signal immediately and the other to start square waves 2 seconds later.  Any help would be greatly appreciated.

    Thank you!

    A few questions.

    Are these frequencies of associated signals? If so, were they to be "in phase"?   As from one simulation after another, put one start later in a case statement, pass a county of timer to establish the initial start time through the loop, subtract the value of the other in the loop, when the difference is => in 2 seconds, set a real flag and have the second simulation in the real of the structure of the business case.

    Typed too slowly again!

  • Error to the element of the queue with simulated signal, but not with the DAQ hardware

    Hello.  I get an error code 1 when I run my VI in simulation mode, which is only 3 simulate subvis signal at different frequencies.  The block diagram shows jpg file and the probe is after I stop the VI.  Note that there is an invalid refnum.  I don't know why that is.  I am also including the watch of the probe after a few iterations, there is no error on the probe 64 until I stop the VI, and also noted that there have been no queue items.  This of course means that I don't get to remove the data in loop 2.  An interesting note is that the system works fine when I run the program in data acquisition mode, which is the other case behind the 'simulate signals. "  In this case, the only thing is the DAQ assistant and dynamic data of the tunnel cable.  Everyone can't see what I could do wrong?  Thank you.

    Thanks for looking at my post.  I thought about it about five minutes ago.  I didn't have a timeout on the handeler event, so it was not double check for new items in the queue.  I don't know yet why the probe shows showes that items have not put in the queue because they certainly were.  Maybe "queue items 0" means that there are no items saved in the queue. ?

    Your concern is interesting and deserves a check...  I just ran it without registration, and it seems that the release of the case (the default) record structure is just an empty DDT, a placeholder, I guess.

  • Windows vista and the air combat Simulator series World War II Europe.

    We have home edition of Windows Vista 64-bit, have loaded Microsoft CombatFlight Simulator WWII Euope series while running as "administrator."  No problem with loading.  Have a Logitech extreme 3d pro. In the development of the game, allows to calibrate the joystick very well, but when you go to missions, nothing works.  If you return together to the top, we get message asking if we want to re - calibrate the device and there a lot of symbols not words in the name of the device of the message window. Anyway to get the game to work with the joystick. We also have the Combat Flight simulator 2, Pacific Therater, and the joystick works very well with it.  Any suggestions to get the game to work?

    Hello Debicin,

    Welcome to the Microsoft Answers Forum!

    First of all, I suggest to uninstall and reinstall the drivers of joystick from Device Manager and check if it works very well. To do this, please follow the steps below:

    Click Start > type devmgmt.msc > right click on the joystick device in the list > click on uninstall > then restart the computer.

    You can also check out the link on how to troubleshoot the problems of gamepad on Combat Flight Simulator 3 (battle for Europe) and follow the steps to check if it helps solve the problem below.

    http://support.Microsoft.com/kb/811463

    I hope this information helps. Please get back to us if you have any other questions on this subject.

    Thanks and greetings
    Mir - Microsoft Answers Support Engineer
    Visit our http://social.answers.microsoft.com/Forums/en-US/answersfeedback/threads

  • To use the computer with the different Flight Simulator equipment that is only compatible with 32-bit versions of Windows

    Original title: change the version of Windows

    I have a computer used only for Flight Simulator and is running Windows 7 Home Premium 64-bit.  I want to use the computer with the different Flight Simulator equipment that is only compatible with 32-bit versions of Windows.  Is there a way I can upgrade to Windows 7 64 bit for Windows 10 32 bit and enjoy free upgrade of Windows 10?

    No, the upgrade program will replace existing windows with the same number of bits, 32 to 32 and 64 to 64.

    Even within the same version of Windows, passing from 32 to 64 and vice versa requires a clean installation.

  • App hangs on the device, but works well on Simulator

    Hello! Last week I had an approved app and it is already in place in the BlackBerry App World. Before being approved, he rejected once, the e-mail message noted that "when testing your app on BlackBerry Z10, I found that he was unable to throw."

    I replied stating that the app has worked very well in the Simulator and asked some tips to solve the problem. It seems that the application got reparsed as overnight has been approved.

    Today, I had the chance to test my application on a real device and I found it crashed right after the launch.

    I don't know what could be wrong with my application. I'm guessing that the reason of this problem could be something similar to this thread; but I think I'm not directly joking with the camera in my code, everything is built on Air.

    Could you point me in the right direction please?

    Thank you in advance!

    What version of the OS is the device running?

    AIR 3.5 is not supported up to 10.2, which is not available to consumers right now better I know.

    If the camera is turned on between 10.0 and 10.1, check that your application - app.xml file appeals to AIR 3.1 namespace and not the AIR 3.5 namespace.

  • The10.3 Simulator displays icons on the toolbar Action exactly as they are displayed on the device itself

    I found that when I build less than 10.3 and run Simulator 3.0 or 3.1 that display icons in the action bar when VisualStyle is 'brilliant' in black on a grey and not black background on white. This is true if the icon is black on white or white on a black background in a first time, and it is the same for all screen sizes.

    I've attached an example.

    This is how the icons are actuualy on the device or will they be black on white.

    Mark, I just tested my change on all the bright and dark features.

    I was looking through my list of icons and I arrived just to pull the top one on the right... the solution was obvious!

    It is in this context of the specific icons that I had placed on the action bar, which was the question. Icons were reversed, but it is in this context.

    I found a complement to my graphics editor to remove (silimaire value = 0) the background and they displayed as expected.

  • App works on the Simulator, but not on the device

    Just try to run the helloworlddemo app compiles fine and works on the Simulator without problem. All I get on the device is an icon of the application that does nothing when clicked.

    I had read this might have to do with the version of the JDE is high for the operating system on the device, but I'm running JDE 6.0.0.37 and the operating system on the device is 6.0.0.666

    I tried with my own app first, compiled, signed it and get the same result as helloworld, then its certainly some mounted sort of question but I have no idea of what

    Thank you

    Sheldon

    Thought of it - was to set the permission of application so that all 3 items were "allow."

  • Unable to launch the Device Manager Simulator

    My system like environment:

    13.04 Ubuntu

    Java 7

    inter i3 4 GB

    VMPlayer 6

    After installation the QNX Momentics IDE, I use Device manager download the sdk and Simulator.

    But I can't launch the Simulator. Nothing happen when I click on the launch button in the Device Manager.

    Hello

    Unless you redefine the paths by default during installation, the Simulator will be located in the base directory under the folder named "bbndk" with all the SDKs BB10 and IDE files. (#1 below screenshot)

    After you download the Simualtor & VMware for linux:

    1 - Open VMware and click Open Virtual Machine

    2 - Go to the folder where the BB10 to add Simulator located in select it [in the./home/bbndk/]. VMX file

    3. now select the simualtor you want to start in the left menu in VMware and click 'play Virtual Machine'

    Hope this helps.

    Thank you

    Kareem.

  • Problem with encryption on the device, of course Simulator

    Morning,

    I work with encryption and posting data to a web service. It works fine on the Simulator, but when posting to a service connection on the device, I get an error "Invalid Credentials", which I think is caused by the encryption does not properly.

    I'm using BlockEncryptor, with PKCS5FormatterEngine and a generated InitializationVector.

    BlockEncryptor encryptor = new BlockEncryptor(new PKCS5FormatterEngine(
                    new AESCBCEncryptorEngine(new AESKey(
                            Base64InputStream.decode(Constants.AES_PRIVATE_KEY)),
                            iv)), outputStream);
    

    Can someone think of a reason why it would work in Sim, but not on the device?

    Thank you

    Okay, sort...

    ERM... Let's just say attention to upper/lower case... Apparently, they produce different cipher text

    Yes... Lets never speak again of this

  • BrowserPlugin works Simulator, but the device does not recognize the mime type

    Hello world

    Use the BrowserPlugin class in JDE samples, I was able to record a personalized with my BlackBerry mime type. When the browser makes a redirect to a specific page with the mimetype, the browser will recognize and use getBrowserContent() to move my application to the foreground, above the BlackBerry browser.

    I have this working on the Simulator, but on the device, I get the message: "unable to display the selected item. You want to save the item? »

    When I click 'No', I get the message: "Unsupported media type: application/x-vnd.rim.xxxtest.

    Like I said before, it works on the Simulator. I supported by the web server mime type, and I created a library project that will run at startup that will record the mime with the device type.

    I've debugged on my real device and confirmed that my library project is actually the launch...

    Someone know why this might work on the Simulator, but not on the device?

    Ah,.

    I'm embarrassed. I had unconsciously assume that when I used Javaloader to load my application to my phone that it would also include the referenced library projects... I was wrong!

    I loaded the library project separately and it works very well.

  • Private opens in the Simulator, but not on the device

    Hello world

    I have a BlackBerry Tour 9630 (4.7.1.61). I'm running the 4.7.0 Simulator in Eclipse.

    Does anyone know why my application would open up a private in the Simulator without problem, but the browser does not open on my real device? I get no error on the device, it just goes to the next screen. I confirmed that the internet works on the device, and I don't see why use only the type of browser BIS would be a problem (I also tried BES).

    Here is my code:

    UiApplication.getUiApplication().invokeLater(new Runnable() {
        public void run() {
    
        BrowserSession session = BrowserLocator
            .createBrowserSession(BrowserLocator.BROWSER_TYPE_BIS);
                if (session != null) {
                    session.displayPage(loginUrl);
                }
    
        AuthorizeScreen authorizeScreen = new AuthorizeScreen();
        UiApplication.getUiApplication().pushScreen(authorizeScreen);
        UiApplication.getUiApplication().popScreen(OAuthScreen.this);
        }
    });
    

    Thank you!

    Thanks for your help.

    The session was to return null. I was able to reproduce this behavior in the simulator using a different type of browser not supported by the service books. Finally, I removed my own BrowserLocator() class (for the call of a certain browser) and replaced by the BrowserSessionFactory() provided in the JDE samples. I now have the browser on the opening device.

    What is the safest Bet, to use the default browser of the device, or use a browser BIS?

    Thank you!

Maybe you are looking for

  • HP Pavilion 15-p000: Microphone does not work do not

    My computer is a HP Pavilion 15 - p000 CTO Notebook PC (ENERGY STAR). I bought it recently and today I tried to communicate via Skype. The friend could hear me, so I checked the built in mic if it worked or not. I trouble shoot the issue, he said tha

  • Bad quality when printing envelopes on P1102W

    I am a toner and it prints well using standard paper, but every time I print envelopes the quality is very bad. The text is very light and has a discoloration in the middle of the text.  It of using the manual tray and seems only occurs with the enve

  • Language at home 7 Pack

    I found the instructions of the company and complete edition, but I have 7 Home Edition - How can we Get a pack of Danish language on my computer? Thank you

  • 17 - F113DX: garbled display

    My screen alternates between good flashing lines scrambled.

  • Hyper V in vFoglight, how to add

    HI friends, Was just born to these new Foglight community, I installed vfoglight, especially for monitoring of Hyper v virtual machine infrastructure I tried to configure my Hyper V environment, but unsuccessful can some please guide me how to config