Rental app run on the Simulator, but not in real device!

Hello

I made a simple application using GPSDemo in JDE, I get altitude, longitude, latitude... I tried in the Simulator (9000) and it worked perfectly.

But when I put it on my BB (bold 9000), I can't get the location information. I've done some tests and I think it's because the location.isValid () return false!

I checked the settings of the BB and the GPS is activated.

Do you know what is the problem? And what can be the solution ?

Thanks for your help and I apologize if my sentences are strange, I'm French and not very versed in English ^^...

Ok! I found the solution! The problem wasn't my code, it came from the camera. I had update (outdoor) GPS data in the advanced options because it was the first time I tried to use it.

And now it works perfectly!

Thank you for all your help

Tags: BlackBerry Developers

Similar Questions

  • My App works on the Simulator, but not on a handheld

    Using the JDE 4.5 with 4.1.2 MDS Simulator

    Eclipse with JDE

    ---

    My app works fine on the simulator using MDS.

    The application simply pushes a screen and then creates a thread (an object of type LoadScreenThread) that will take an XML file using HTTP.  The XML file is parsed and then creates a new screen and it grows by calling (from LoadScreenThread): invokeLater with an executable object what method run() calls anti-pop and the specified UiApplication pushScreen.

    I tried various things for the last 10 hours and it still does not work.

    For the HTTP connection, because I would use MDS to Internet I added the '; '. deviceside = false' suffix.

    Could someone tell me please know why it would work fine on the Simulator (MDS) and not on a portable device?

    On the handheld, I see the arrows download flicker.  But it drives not only the new screen?

    Your device is connected to a MDS (BlackBerry Enterprise Server)?

    If it's just your BB private, so it's rather unlikely, and you will very probably connected to BIS. But you have to grant special permissions to RIM using BIS to use other means like the WAP2 gateway.

    Take a look at this thread:

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&thread.ID=29103

    It explains basically everything on the sides of the network connectivity to BlackBerry.

  • 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."

  • Can deploy app in the Simulator, but not to the device

    Sorry about this newbie question, but how is it that a simple HelloWorld application compiled in Eclipse runs just fine on the Simulator, but cannot be installed on a 8320 Curve by the Blackberry Desktop Software?

    I use the latest version at all.  The message returned by the desktop software is:

    ! There was an error importing files.
    No additional applications can be found. Your file can
    contain applications that already exist in the list of applications,
    are not compatible for your device, or errors.

    However, I am able to deploy the application on the handset using the command line tool:

    C:\Eclipse\plugins\net.rim.ejde\vmTools\JavaLoader.exe -usb load \workspace\HelloTest\deliverables\Standard\5.0.0\HelloTest.jad
    

    This installs the application, which then runs correctly on the device.  I can then reload the list of app on the Blackberry Desktop Software tool and it shows HelloTest, but under the properties of the Application-> dependencies it says:

    "Application not available (net_rim_cldc).

    It seems that some dependence crept in the generation of the application and that confuses the desktop tool.  The curve is running 4.5 OS.

    Should I just throw this office tool, or how can I clean the application so that it installs correctly?  Obviously, this is just foreplay before building a much broader application, and I wish I had these little glitches will hamper ASASP.

    Thanks for any help!

    You should be able to download a plugin 4.5 on the site to update. Go to "help > install new software" to open the screen of software available. If you have not yet done so, add the updated BlackBerry site to your Eclipse configuration:

    1. Click on "available software Sites.
    2. Click on the button 'Add '.
    3. Enter a name such as 'BlackBerry update location' and set the location http://www.blackberry.com/go/eclipseUpdate/3.5/java
    4. Click OK, then OK again to return to the screen of the software available

    The 'working with' menu drop-down, select the location of BlackBerry Update (or whatever you named it). Expand the BlackBerry Java plug-in category and you should be able to select an appropriate plug-in version.

  • GPS works on the Simulator, but not on phone

    Hello

    I created a simple application that gets the location of the device's GPS. The app works perfectly on the Simulator, but I have no GPS updates on the phone. I've been in options-> device-> Location.Settings on the phone and can see the GPS updates are coming through. But the app says there is no valid received GPS.

    I tried it on BlackBerry 9800... All I get on the phone is 'pending GPS update', that my app is displayed if no valid GPS don't trouble is received.

    Thanks in advance.

    Kevin

    C criteria = newCriteria();

    c.setHorizontalAccuracy (Criteria.NO_REQUIREMENT);

    c.setVerticalAccuracy (Criteria.NO_REQUIREMENT);

    c.setCostAllowed (true);

    c.setPreferredPowerConsumption (Criteria.POWER_USAGE_HIGH);

    LocationProvider lp;

    Try

    {

    LP = LocationProvider.getInstance (c);

    if (lp! = null)

    {

    lp.getLocation (timeout);

    lp.setLocationListener (newMyLocationListener(),-1, 1, 1);

    }

    on the other

    {

    Dialog.Alert ("sorry - your phone does not support GPS");

    }

    }

    catch (Exception e)

    {

    System.

    Err.println (try ());

    }

    }

    private class MyLocationListener implementsLocationListener

    {

    public voidlocationUpdated (LocationProvider provider, a place)

    {

    if (location! = null& location.isValid ())

    {

    QualifiedCoordinates qc = location.getQualifiedCoordinates ();

    Try

    {

    Lat string = Double.toString (qc.getLatitude ());

    String long = Double.toString (qc.getLongitude ());

    UpdateScreen ('place of registration successfully');

    }

    on the other

    {

    UpdateScreen (' Failed to day location ');

    }

    }

    catch (Exception e)

    {

    }

    }

    on the other

    {

    UpdateScreen ("waiting for GPS update");

    }

    }

    public void providerStateChanged (LocationProvider provider, intnewState)

    {

    TODO: If the provider has been disabled, then disable the reporting

    }

    }

    Try the examples of programs that you can find here:

    http://supportforums.BlackBerry.com/T5/Java-development/BBM-shareContent/m-p/1796237#M203486

    or here:

    http://supportforums.BlackBerry.com/T5/Java-development/simple-location-API/Ta-p/1145951

    See if these work on the unit.  If they do, look at the code listed and compare with yours.

  • Event Swipe works in the Simulator, but not on the device

    I'm using panels on my 9900 and I have 4 panels that the user will slide back and forth similar functioning BB app world, changing the summary of comments on signs etc..

    My expection who was up and down for scanning of touch screen functions and the touchpad has the same function by default, that is to the left and right slide on the screen should also be identical to forehand and left on the block to tack. But it does nothing for the panels when you use the trackpad.

    So I replace NavigationMovement and and can see the touchscreen and the track pad to generate a NavigationMovement event with +/-x according to the direction slide. So I'm first puzzled why hit swiping the trackpad on the left and right triggers not the same behavior by hitting swiping left and right on the touch screen.

    Accept that as a limitation of the API, I added my own features to NavigationMovement to inject a key event when user left or right on the trackpad moves. As follows:

    EventInjector.TouchEvent [] moveEvents = new EventInjector.TouchEvent [7];

    moveEvents [0] = new EventInjector.TouchEvent (TouchEvent.MOVE, 420, -1, -1, 60-1);
    moveEvents [1] = new EventInjector.TouchEvent (TouchEvent.MOVE, 360, 60,-1, -1, -1);
    moveEvents [2] = new EventInjector.TouchEvent (TouchEvent.MOVE, 300, 60,-1, -1, -1);
    moveEvents [3] = new EventInjector.TouchEvent (TouchEvent.MOVE, 240, 60,-1, -1, -1);
    moveEvents [4] = new EventInjector.TouchEvent (TouchEvent.MOVE, 180, 60,-1, -1, -1);
    moveEvents [5] = new EventInjector.TouchEvent (TouchEvent.MOVE, 120, 60,-1, -1, -1);
    moveEvents [6] = new EventInjector.TouchEvent (TouchEvent.MOVE, 60, 60,-1, -1, -1);
    EventInjector.TouchEvent.injectSwipeGesture (480, 60, moveEvents);

    It works perfectly in the Simulator, but on the device, there is no movement at all. So I thought that maybe the touchpad on the Simulator is more sensitive than on the real device, so I added a menu item to perform the injection above. Again, this works perfectly on the Simulator, but nothing on the device.

    Has anyone tried this brain left and just before the injection?  Up and down the injection works perfectly on the device.

    Have you enabled event injection in request permission settings for your application?  It is disabled by default.  You can do so by going to Options-> Application, select your application and click on change permissions.  You can also request these permissions programmatically using the class ApplicationPermission.

  • 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.

  • Work of Auditors in the Simulator but not actually "BOLD"

    Hey - if anyone knows how to get a "BOLD" handset to allow listeners (PhoneListener, KeyListener, OutboundMessageListener) I would appreciate it. My app uses listeners and works very well in the Simulator, but only sporadically on the actual handset. Does anyone know how it works?

    See you soon,.

    Justin Dutoit

    I think you need to post a snippet of a listener of non-working, if you want to help more with this.

  • SIT error 14104, dll runs on the host, but not on the target

    Hello

    I have problems of deployment dll (compiled in 2007 with Microsoft Visual C++ .NET 2003) Simulink in LabVIEW (2009 SP1). My target system is a desktop PC with LabVIEW Real-time 9.0 installed.

    I created a simple Simulink model which mulitplies an entry with a Gain and returns the result. I compiled using the nidll.tlc as a target file system.

    Then, I created a LabVIEW RT application that uses this DLL. I created exactly the same application as the host VI and VI target. On the host VI everything works fine. On the target VI, I get error SIT 14104.

    What I did to solve this problem? I followed the steps on http://digital.ni.com/public.nsf/allkb/C7FF960E0A6C219A8625729600104615 . I have manually deployed the dll on the target computer. I used the suggested compiler. There is a lot of memory on the computer (RAM and HDD) target. And I'm not using a CRio system.

    Does anyone have an idea how to fix this error? I will attach the sample project labview and the MDL and DLL to this post. Don't forget to adapt the DLL-path if you test the program.

    Kind regards

    Thomas

    Well I found a solution.

    I had to deploy the DLL manually on the target, but not in ftp://IP_Address/ni-rt/system/ as the link above is said but rather in ftp://IP_Address/ .

    Problem solved.

    Kind regards

    Thomas

  • App installs in the Simulator, but will not work

    I installed a (bar) AIR app in the Simulator (currently using the default icon), but when you click on it, it does nothing.

    I tried various sovereign wealth funds including extremely simple without success.

    I tried in the card Sim PlayBook. and the card Sim BB10. The only difference in the latter case, it is only after you click the icon, the screen clears before returning to the original state after doing nothing with my application.

    I tried without success AIR 2.5 - 3.2.

    In the command line, I see: blackberry-airpackager version 1.6

    I use Vmware 4.0.4 (after many hours of Assembly and disassembly of the different versions of Vmware)

    It has many old Posts with suggestions on how to package and install AIR applications built in Flash Pro. for use with the PlayBook.

    What is the most recent and correct for PB so BB10 method?

    Thanks to steve_web:

    The problem was that I try to run the SDK/bin folder command line package manager and using full path of the directory for files SWF and xml of th.

    As a result, there is a similar directory structure in the folder of the air in the BAR.

    I did that because I couldn't have the classpath working to run Packager outside the bin folder.

    I got it finally work when I realized it was WAY not the CLASSPATH that needed to be added.

    In short... the app worked, but it didn't load the swf file because he was in a series of subfolders in the BAR.

    Thanks Steve!

  • Apps of the problem running in the Simulator - net_rim_xml not found.

    I'm starting to do some Java development. I'm under the Simulator in Windows using the JDE environment to see how the code works.  (I normally run Ubuntu as my main OS.)

    I can run all the examples of code very well when my Simulator is a 9500-JDE, but when I switch to a 8300-ATT-JDE - 4.2 I get a message, "the Source code is not available" in the java window not found 'Module 'net_rim_xml_org'. Error starting : Module 'net_rim_xml_org' not found. »

    What happens on a XP (running under VirtualBox) instance and an instance of Windows 7.

    I installed and re-installed the JDE just to see.

    I also googled and not found the answer.

    TIA

    The code is forward but not backward compatible.

    You develop using JDE 4.7 I guess, so you can execute code in 4.7 or higher.

    Develop for a race of 8300 4.2.1 (Simulator or device), you'll need JDE 4.2.1.

  • The screen on the Simulator, but not on the device loads

    Hi all

    This issue is driving me crazy.

    The problem: I added a menu item in the email application. When the user clicks on the menu, I load a pop-up screen and get the entry user, then save it. This works quite well on my Simulator (8310 v4.5). But when I load in my camera (8310 v4.5), is not.

    I can't understand where is the problem. Your entries please.

    Note: I checked with the record menu item. I added a warning msg before loading of the screen. The alert is displayed, while the screen does not load. (The screen is a separate category in the same menuitem file, I have class instantiaite inside the application menuitem run() method).

    Sorry, I was in a hurry, so just wrote a very brief answer.  Unusual for me!

    Take a look at this:

    http://supportforums.BlackBerry.com/T5/Java-development/how-do-I-debug-on-a-live-device/Ta-p/446842

    There are other tips on the forum that you will probably find through research, should he not help.

  • 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!

  • application runs on the ripple, but not device

    Hi - This is a newbie question.  I try using ripple of stable development and then compile the application for execution on a smartphone.

    There seems to be 2 different ways to use ripple.  It is like an extension of Chrome, described on this page:

    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/how-to-use-ripple-instead-of-the...

    A second way he starts as an application independent, described on this page:

    https://bdsc.webapps.BlackBerry.com/HTML5/documentation/ww_getting_started/getting_started_with_ripp...

    The second mode automates much of the process of packaging app, as described here:

    https://bdsc.webapps.BlackBerry.com/HTML5/documentation/ww_getting_started/creating_an_app_1885567_1...

    These seem to be the 2 different operating modes, but I've not found any discussion about the difference.  Am I missing something?  The two modes will be running test applications - for example, Hello world and the sample application UIExamples.

    Only the second mode has settings options on the key icon which automates application packaging.  Maybe I don't have something set up properly in Chrome for it get there?

    When it runs as a standalone application, it is very slow and many attribute tags are not displayed correctly, which makes me wonder if it's supposed to work in the corresponding mode, or if something is not installed correctly.

    In standalone mode it signals that he successfully built both the Hello World application and the UIExample app, and the JavaLoader said he manages to load on my Torch 9800.  Icons appear on the torch, but applications do anything when I tap on the icons.

    Thanks a lot for any clarification on how to properly install and use ripple.

    Keith Levi

    You don't need to change your paths relative to use local: / / /..., you just use the local: / / / path if you load a page from a remote domain, and you want this remote to access local domain packed files.

    All my applications use relative paths.

    Did you sign your application before attempting to run it on the device?  By looking at the output that you have validated the bbwp it shows that you not sign the application... If the application is not signed, it will not work on a real device.

    Ripple Chrome plugin is still available, as we work through some of the other features of the Beta 1 update which will be released at the end of this month.  The plug-in in Chrome is gradually and will set up a plan to end of life.

  • The following HTTP requests fail in the Simulator, but not on the device (4.2.1)

    Anyone had this problem before?  I do a HTTP request and then according to the return add another to my queue and the other repeatedly fails on the Simulator.  However, I tried to run on the device and everything worked perfectly.  I know this is a pretty vague description, but I was wondering if there was any problem known about.  He could make debugging in the simulator that is very difficult in the future.

    marchywka, I think it has something to do with the WiFi in the Simulator.  It works the first time, but in certain circumstances later fail.

    I couldn't understand it, but I decided to not use WiFi when it is the Simulator and use WiFi on the device.

Maybe you are looking for

  • No drivers for Y510p!

    Hello I want the drivers for Lenovo Y510p for Windows 10. But I don't see the drivers on the download page:http://support.Lenovo.com/us/en/products/laptops-and-netbooks/IdeaPad-y-series-laptops/IdeaPad-y510p... Although I can see that Windows 10 driv

  • atikmpag.sys blue screen

    Hello there, so I got this blue screen atikmpag.sys appers in my laptop, I have if I could fix it with an OD format I tried that now, not only there has not been fixed but I cannot run in safe mode because windows have so install, no way to get rid o

  • MapPoint 2013: Application start does not correctly. Any help?

    I've installed Mappoint 2013 on a Server 2008 Standard Edition RS SP1 machine. Initially, I was getting an error which had to deal with cfm100.dll. I found a solution online for this and the error no longer appears. When I run Mappoint 2013 now I get

  • the product key you typed is alread in use.

    When I turn on my computer and it boots up, I get a windows error message.  Please enter your product code.  After I typed my product code I get a message error that the "product code you typed in is already used.  I don't understand what the problem

  • in the blue screen it rights something that suddenly turns off and restarts again.

    in the blue screen that he rights something that suddenly turns off and restarts again.my at startup of windows and after it notifies wait me and it stays like that for a long time and restarts again. Help