×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2012
    Posts
    2

    Unhappy App Works on the Emulator but not on the Actual Device (Asha 303)

    I am developing an app that uses the Location API and the Maps API. When I run it on the emulator, it first asks for location permissions and it works fine (but the emulator gives it dummy values). When I deploy it on the phone, it doesn't ask for location permissions and immediately gives an error. I can't trace the problem since there is no output console when you run it on the device.

    Do I need to add something on my code so that it would ask for location permissions?

    PS. It is a J2ME app

  2. #2
    Nokia Developer Expert
    Join Date
    May 2012
    Location
    Espoo
    Posts
    224

    Re: App Works on the Emulator but not on the Actual Device (Asha 303)

    Hi Aldaneqwertyuiop and Welcome to Nokia Developer Discussion Boards,

    You don't need to add anything in the code to ask for location permission on the device.

    Make sure that Nokia maps jar is included while packaging your application and Internet connection is available on your device. Nokia maps jar can be downloaded from here http://www.developer.nokia.com/info/...3e/JavaME.html

    For logging on device, you can use File connection API (JSR-75). For example see the wiki article http://www.developer.nokia.com/Commu...ile_in_Java_ME
    or use device debugging.

  3. #3
    Regular Contributor
    Join Date
    Aug 2011
    Location
    Berlin
    Posts
    288

    Re: App Works on the Emulator but not on the Actual Device (Asha 303)

    If you are trying to get the Maps API for Java ME working with an Asha 303 or the SDK 1.1, you should be aware that issue with Markers has been raised and a fix is in the pipeline - further discussion will be consolidated in this thread:
    http://www.developer.nokia.com/Commu...d-Java-SDK-1.1

  4. #4
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: App Works on the Emulator but not on the Actual Device (Asha 303)

    Also keep in mind that Asha 303 does not have an integrated GPS receiver.
    So if you are attempting to retrieve the location provider using this method:

    Code:
    lp = LocationProvider.getInstance(criteria);
    Asha 303 will attempt to find a Bluetooth GPS receiver. If you cancel the search, it will throw an exception.

    Your device supports Cell-ID (network based) location retrieval so you need to retrieve the location provider using LocationUtil:

    Code:
    lp = LocationUtil.getLocationProvider(methods, null);
    More information about this:
    a) Example for retrieving location with a GPS module
    b) Example for retrieving location with Cell-Id (Network based)
    c) Developer's Guide on Location

Similar Threads

  1. [moved] S40 application works on stimulator but falis on nokia 300 asha
    By PoojaKaregoudar in forum Nokia Asha Web Apps
    Replies: 9
    Last Post: 2012-03-30, 08:19
  2. jar file working in emulator but not in the actual device
    By jaydeepw in forum Mobile Java General
    Replies: 5
    Last Post: 2010-09-03, 18:07
  3. interfacing emulator with actual mobile device
    By abhi4u2seeu in forum Mobile Java Tools & SDKs
    Replies: 5
    Last Post: 2009-01-21, 10:37
  4. Interfacing emulator with actual mobile device
    By abhi4u2seeu in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2009-01-21, 06:22
  5. What to trust - Emulator or Actual Device
    By mpgreen in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-03-03, 11:43

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×