Use Location API (JSR 179)

Hello everybody!
I'm studying JavaME and its APIs, especially the API JSR 179 (Location). Until I found tutorials on the Internet, though, as I am beginner, I can not locate me in code.
The code was to take pictures, and imbuing it the geographical location of latitude and longitude, and write to a specific folder. However, only that the program captures the Latitude, Longitude and Altitude, and throw in the display.
I ask your help to solve this problem.
Thanks
PS = To determine the speed, the API Mobility would be better, right?

following tutorial will help you.
http://wiki.forum.nokia.com/index.php/Mini_App_With_Location_API_and_Google_Maps_in_Java_ME
Edited by: 795848 on Nov 20, 2010 1:15 AM

Similar Messages

  • How to use Location API .

    What is reqired to use Location API on Mobile Phone.
    Please Help me.

    do visit
    http://developers.sun.com/techtopics/mobility/apis/articles/location/
    and search this web site lots of information is avlb here
    bye

  • JSR-179 and Mobile Operators

    Hello!
    Anybody knows of a Mobile Operator that currently supports the J2ME Location API (JSR-179)?
    I havent managed to find anyone so far.
    Any Kind of Info will be greatly appreciated
    regards
    Thanos

    It is very frustrating. From the info I have found so far, many operators do offer various APIs to get location information, but this works from a server application (passing the MSISDN to the network operator's location server), and not from the device itself. These require that you have some business relationship with that operator. For example, Orange provide a location API (http://www.orange.co.uk/thirdparty/location.html") , but you have to be an "Orange Partner premium member" and Orange have to approve your application. No word on whether they will migrate this service to support JSR-179.

  • Porting location api to own device

    Hello,
    I am currently looking into the possibilities of porting the j2me location api (jsr 179) on my own device. So far I found out, that I have to port the cldc reference implementation first, to have a VM that runs on my device. But now I am not sure how to continue. Is there any example sourcecode available how the api works, or do I have to implement it on my own, specifially for my device? If I do have to program it myself, would I do that in C and add it to the CLDC sources, or would I do that in java as a library?
    Thanks in advance

    Hi,
    You should google on Fortuna GPS ClipOn and API
    Kaj

  • Anyone with JSR-179 phone needed!

    Could anyone please try the example below on one of the phones listed here:
    http://developers.sun.com/techtopics/mobility/device/pub/device/list.do?page=2&apiId=125
    The example is pretty straightforward:
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.location.*;
    public class LocationMidlet extends MIDlet implements CommandListener {
        Command Exit = new Command("Exit",Command.EXIT,0);
        public LocationMidlet() {}
        public void startApp() {
            Form f=new Form("Waiting...");
            f.append("Finding for location...");
            f.addCommand(Exit);
            f.setCommandListener(this);
            Display.getDisplay(this).setCurrent(f);
            try {
                Criteria c=new Criteria();
                c.setHorizontalAccuracy(1000);
                c.setVerticalAccuracy(1000);
                c.setPreferredPowerConsumption(Criteria.POWER_USAGE_LOW);
                LocationProvider lp=LocationProvider.getInstance(c);
                Location loc=lp.getLocation(60);
                QualifiedCoordinates qc=loc.getQualifiedCoordinates();
                f.append("Alt: "+qc.getAltitude());
                f.append("Lat: "+qc.getLatitude());
                f.append("Long: "+qc.getLongitude());
            } catch(Exception e) {
                f.append("Exception: "+e);
        public void pauseApp() {}
        public void destroyApp(boolean destroy) {}
        public void commandAction(Command c, Displayable s) {
            if (c == Exit) {
                destroyApp(true);
                notifyDestroyed();
    }This example is from: http://www.java-tips.org/java-me-tips/midp/location-based-services-on-j2me-devices.html
    You would need the wireless toolkit 2.5
    It seems to be working in emulator but I don't have access to the proper device to test it and I have read that the mobile operator has to support this as well in order to work.
    Any help would be appreciated. Thanks to all.
    I just want ot check if using location API with jsr-179 enabled phones is possible and with which mobile operator have you tested it. Thanks!
    Message was edited by:
    kris_java

    <snip>
    Waiting...
    Finding for location...
    Exception: javax.microedition.location.LocationException: getLocation() method cannot be called from event thread
    </snip>
    That's what my BlackBerry 8800 says.
    martin[at]teambender.de

  • Code to set alarm using PMI API (JSR72)

    Hello,
    I have a requirement to set the alarm even when any J2ME application is not running, so I need to use PMI API(JSR-72) instead of Alert.
    If anyone has the code for the above scenario, please share.
    Thanks in advance!

    What kind of a Java problem are you having?

  • JSR 169 - Location API

    Hello,
    Would Nokia series 40 supports JSR 169?

    u should see mobile phone's configuration of jsr before using jsr 179 i.e location api..
    s40 is not concerned but mobiles supporting jsr file is of main concern.
    well jsr 179 used for location based services. so u mite b working for lbs..
    i m also analyzing for lbs application.. if u have any updates then feel free.

  • How to Use the Scalable Vector Graphics API (JSR 226)

    im doin an Application with Maps and locations...
    i need 2 use the Scalable Vector Graphics API (JSR 226)..
    can anyone plz guide me to get it and use the API.. Im using netBeans 5.0
    it will be great help :)
    Regards
    Muhammedh aka MNM

    Thanks Rohan :)
    i did read some stuff from the URLs u gav me :)
    and I manage 2 solve the prob i had :) (Thank God)
    1. downloaded latest version of netBeans (5.5)
    2. Java SDK 6 :D...
    3. the key thing: Wireless tool kit for CLDC 2.5 Beta
    now when u create a project make sure u set the above given tool kit :)
    when u set it.. u get an option 2 select the APIs frm a List.. Check on SVG API :)...
    Other APIs Such as,
    * wireless Messaging API
    * Location API
    and many more...
    Cheers 2 Every1 :)
    regards
    Muhammedh

  • How to use Landmark & LandmarkStore classes in Location API

    hi
    i have some problem to use Landmark & landmarkStore classes in location api . any one give source link to use these calsses.

    1) why not simply create two different timer objects, one for one image, the other for the other. I would caution you that you may wish to limit the area of your repaint so as not to slow down your app repainting everything when you only need to repaint the area around your sprites.
    [http://www.java-forums.org/awt-swing/14590-how-use-multiple-timer-classes-swings.html]
    2) Please note that cross-posting can frustrate anyone who tries to help you only to find out later that the same answer was given hours ago in a cross-posted thread. No one likes wasting their time, especially a volunteer. The polite thing to do would be to not do this, but if you feel that you absolutely must, to at least provide links in both cross-posts to each other.

  • NoClassDefFoundError in JSR-179 code

    Hello. I am testing some GPS capabilities on my 7100i Sprint/Nextel. Everytime I try to run my midlet on the device, I get the "NoClassDefFoundError". The 7100i is listed as implementing the JSR-179 spec, so I am at a loss.
    I have tried getting the result of the System.getProperty("microedition.location.version") and it returns "1.0" as it should according to the spec. I have explicitly enabled permissions in the midlet for the .Location class.
    The code I am using it coming directly from an example posted on BlackBerry's site ... http://www.blackberry.com/developers/journal/jan_2006/blackberry_gps.shtml?CPID=OTC-devfeb17
    Can anyone provide help on getting past this error?

    I kept poking around on this and found that the .jar file did not include the .class files from the JSR-179 implementation. I manually added these to the preverification and recompiled and re ran on the device. Now I am getting "...attempts to access a secure API". It seems from that now I have to use the Blackberry/RIM digital signing process to gain access to this. Any additional comments on these topics are very welcome!

  • JSR-179 GPS

    Hi,
    I want to have a custom Location object with my custom lat/lon.
    How can I do this? is it possible?
    Thank you for your replies if any :)

    I got this email from Kevin Sally:
    Hi Shahar,
    The JSR179 spec/API is meant to be used on Mobile devices with an embedded GPS receiver. However, having said that, if you include the JSR 179 package in your JSE application for a PC, you can use the distance measurements etc that are packaged with the JSR179 package. It seems like overkill though, I am sure there are other open source packages out there that will provide the capability to measure distances between points, etc.
    Basically, you will have to use streaming NMEA data on your serial port to aquire the GPS coordinates as the JSR179 spec is not meant to aquire GPS coordinates from a serial port.
    I hope this helps.
    Regards,
    Kevin
    Kevin Sally, P.Eng
    Certified Senior IT Architect, IBM WebSphere Services
    03/RKN/8200/MKM
    email: [email protected]
    (905)413-5613
    t/l:969-5613

  • JSR 179 and GSM

    Can we get the co-ordinates using JSR 179 in a mobile device(With out using GPS)? I mean using cell-ID?
    If so which are the phones supporting this feature.

    lalvs wrote:
    Can we get the co-ordinates using JSR 179 in a mobile device(With out using GPS)? I mean using cell-ID?http://developers.sun.com/mobility/apis/articles/location/
    spatial location can be expressed in the widely used latitude-longitude-altitude coordinate system. Latitude is expressed as 0-90 degrees north or south of the equator, and longitude as 0-180 degrees east or west of the prime meridian, which passes through Greenwich, England. Altitude is expressed in meters above sea level.
    If so which are the phones supporting this feature.+JSR 179 requires the Connected Device Configuration (CDC) or version 1.1 of the Connected Limited Device Configuration (CLDC). CLDC 1.0 isn't adequate because it doesn't support floating-point numbers, which the API uses to represent coordinates and other measurements. The Location API doesn't depend on any particular profile -- it can be used with MIDP or the Personal Profile.
    The hardware platform determines which location methods are supported. If it doesn't support at least one location provider, LBS won't be possible. Applications can request providers with particular characteristics, such as a minimum degree of accuracy. Some location methods may be free; others may entail service fees. The application should warn the user before any charges are incurred. +

  • JSR 179 - GPS access - webApp?

    If you have an GPS-phone with JSR-179 you can easily get the coordinates of where you are.
    But if you dont want to get the coords when using a web-browser where you would like to input them, can you even do that?
    (I am in control of the web page)

    lalvs wrote:
    Can we get the co-ordinates using JSR 179 in a mobile device(With out using GPS)? I mean using cell-ID?http://developers.sun.com/mobility/apis/articles/location/
    spatial location can be expressed in the widely used latitude-longitude-altitude coordinate system. Latitude is expressed as 0-90 degrees north or south of the equator, and longitude as 0-180 degrees east or west of the prime meridian, which passes through Greenwich, England. Altitude is expressed in meters above sea level.
    If so which are the phones supporting this feature.+JSR 179 requires the Connected Device Configuration (CDC) or version 1.1 of the Connected Limited Device Configuration (CLDC). CLDC 1.0 isn't adequate because it doesn't support floating-point numbers, which the API uses to represent coordinates and other measurements. The Location API doesn't depend on any particular profile -- it can be used with MIDP or the Personal Profile.
    The hardware platform determines which location methods are supported. If it doesn't support at least one location provider, LBS won't be possible. Applications can request providers with particular characteristics, such as a minimum degree of accuracy. Some location methods may be free; others may entail service fees. The application should warn the user before any charges are incurred. +

  • LocationProvider (JSR 179) implementation for GPS on PC

    Hello all,
    Can any one direct me please to a LocationProvider implementation for windows of the JSR-179 location api.
    it seems that each mobile device should have it's own implementation of the LocationProvider. what happens if my mobile device is an ordinary PC running Windows?
    for that matter in need also an implementation for linux...
    It seems so trivial, I just need an implementation that knows to read NMEA protocol out of a COM port....
    it should be simple I feel that I'm missing something... I'm trying to find something for that last 24h and come in vain.
    please help,
    tnx in advanced,
    Shahar Daniel

    I got this email from Kevin Sally:
    Hi Shahar,
    The JSR179 spec/API is meant to be used on Mobile devices with an embedded GPS receiver. However, having said that, if you include the JSR 179 package in your JSE application for a PC, you can use the distance measurements etc that are packaged with the JSR179 package. It seems like overkill though, I am sure there are other open source packages out there that will provide the capability to measure distances between points, etc.
    Basically, you will have to use streaming NMEA data on your serial port to aquire the GPS coordinates as the JSR179 spec is not meant to aquire GPS coordinates from a serial port.
    I hope this helps.
    Regards,
    Kevin
    Kevin Sally, P.Eng
    Certified Senior IT Architect, IBM WebSphere Services
    03/RKN/8200/MKM
    email: [email protected]
    (905)413-5613
    t/l:969-5613

  • Java Location API,  Siemens SK65,  Irish network operators

    Hi,
    I'm a senior java developer, just starting to experiment with J2ME.
    I wrote a real simple Midlet to request my location from the Java Location API.
    It runs in the emulator (Eclipse, WTK 2.3) but hangs on my Siemens SK65 phone, which supports JSR 179 ( the java location api ).
    Anyone got any experience of the Java Location API.
    I've a couple of suspects...
    a) that the Irish phone network ( O2 ) doesn't support location based
    services. I previously tried listening for nearby cell broadcasts, but O2
    don't seem to send them out.
    b) that the phone needs GPRS and/or bluetooth settings enabled (tried both)
    This isn't urgent, simply experimenting, but if anyone has any information to point me in the right direction, it'd be appreciated.
    regards,
    Owen

    Cheers deepspace,
    I'll do some research into "AGPS".
    Failing that, I've seen an application "PlaceLabs" which looks interesting, and seems to triangulate your position based on Cell ids.
    duke dollars on their way :-)
    regards,
    Owen

Maybe you are looking for

  • Delivery address on item level in Sales Order causes delivery split

    Hi all, I have an issue where our customer is sending in EDI-orders with delivery address on item level. This generates different SAP addresses for each line in the Sales Order later causing a delivery split in VL01n. Normally a SO contains 20 items

  • Acrobat 9 prints background all black and letters as white

    Acrobat 9 will print text as if white and all the background as black. OS is Windows 7 32bit. Most occurences are when trying to print scanned pdf's contained in emails. Any suggestions on how to fix or settings to try?

  • How to debug this error? trying to load excel file to Database

    SSIS package "c:\users\asubedi\documents\visual studio 2012\Projects\Integration Services Project1\Integration Services Project1\PackageToLoadBuyerDedupe.dtsx" starting. Information: 0x4004300A at BuyerDedupe, SSIS.Pipeline: Validation phase is begin

  • Personal Domain Help

    When I went to the help page to find out how to finish the new domain name this came up.... I had no idea what it meant. Had I already done this when I'd entered the new domain from my .mac settings? If you know please help. In the web hosting area o

  • Which nvidia driver?? [Solved]

    Hi all, I am sorry, I am not able to understand the beginners guide regarding installation of nvidia drivers. I have X and kdemod3 running with the nv driver, but it is slow. My card is: nVidia Corporation NV44A [GeForce 6200] (rev a1) On beginners g