How to get the Location of the Device

hi all,
I want to find out the Location of the MObile device.
I am trying to find out with the help of the Location API which was available in the CLDC 1.1.I am using the following code to get the Location
try{
     Criteria cr = new Criteria();
     cr.setHorizontalAccuracy(500);
     LocationProvider lp = LocationProvider.getInstance(cr);
     Location l = lp.getLocation(60);
     Coordinates c = l.getQualifiedCoordinates();
     if(c!=null)
     double lat = c.getLatitude();
     double alt = c.getAltitude();
     double lon = c.getLongitude();
     locate = c.convert(alt,1);
}catch(Exception e){System.out.println(e);}
I used a seperate thread to get the Location.The thread was running it was not diaplying any value(in the Emulator).Can anybody tell me the possible output when we use the Emulator.
Please help me,Thanks in advance
Lakshman

hi,
Even though the Nokia was the leaders of the JSR 179.but the Specification were developed by the sun.So to my knowledge the device which will support CLDC 1.1 will support my code.
at present i had a Blackberry 7100t,I have to check whether the device support the CLDC 1.1
can anybody please tell me what are the mobile devices that support the CLDC1.1?
lakshman

Similar Messages

  • How to get the device token in windows phone 8 sliverlight application?

    Hi,
    I am developing a windows phone 8 silverlight application . For my application I want to add push notification service , for this service I have to call one web service in my app . This api requires device token , device id ..etc , I am able to get the all
    the things except devicetoken .
    How to get the device token of a device ?
    any help?
    Thanks...
    Suresh.M

    Most probably device token is the push channel url which is returned by MPNS when a request is made to it.
    Step 3 here: Push notifications for Windows Phone 8
    http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8

  • How to get the device number

    hi,
    anyone help me how can i get Mobile number in through J2me API
    thanks

    U can open the device and issue the following ioctls
    DKIOCGGEOM, DKIOCGVTOC, DKIOCINFO.
    See man dkio

  • My iPhone getting stolen,how I get the actual location my iPhone way using the apps find my iPhone?

    My iPhone getting stolen,how I get the actual location the full address to find my iPhone way using the apps find my iPhone?

    If you set up the Find My iPhone service prior to your iPhone going missing - the app is for tracking a device from another iOS device - then there is a chance that can be tracked, though it depends on a number of factors (the iPhone is turned on, connected to either the 3G or a WiFi network, or has not had the Find My iPhone service disabled or the iPhone been completely restored). Log into icloud.com and go to the Find My iPhone section. If you did not set up Find My iPhone, check with your cell carrier. Some carriers offer their own tracking service, though you usually have to pay for it. 
    If your carrier does not offer such a service and you did not set up Find My iPhone, then there is no way to track the unit. Contact the police and change any passwords for any online accounts you may have used from your iPhone (the iTunes Store, for instance). 
    Regards.

  • How do I get the device icon to show in the itunes  app?

    How do I get the DEVICE icon to appear back in the itunes app as when I plug in my ipod it doesnt show the device icon?

    Hi...
    Help here > iOS: Device not recognized in iTunes for Windows
    Start with restarting the Apple Mobile Device Service first.

  • My devices no longer show up when plugged into itunes on home computer - How can I get the devices to show up on the left tool bar on itunes like before?

    for some reason I can't see "devices" when I plug them into my home computer (running snow leapard).  I recently upgraded my laptop to lion and now the devices are looking for my mac book.  How do I get the devices to sync with home computer and not the mac book?

    Try Andrei Cerbu's post here or see TS1538: iOS: Device not recognized in iTunes for Windows, in particular section 5, forcing a driver update.
    tt2

  • If you deleted a  device off of find my iphone.how do you get the device to start back up agian and put it back on find my iphone?

    if you deleted a  device off of find my iphone.how do you get the device to start back up agian and put it back on find my iphone? becuase i have delted my dads iphone acedentily of find my iphone and it is nownot working. his phone is just staying at a black screen with a loading circle on it. i need to know how to fix this..like do i go the to apple store or the carrier store or can i fix it at home?

    Try these two ways to fix the iPhone (in order).  If neither works, you would have to take it to the store.
    1.  Reset the iPhone.  Hold the on/off and home buttons togehter for about 10 seconds.  If it works, you'll get the Apple logo and then something good should happen.
    2.  Try recovery mode as described here:
    http://support.apple.com/kb/HT1808
    If one of these work, you can then re-introduce the iPhone to Find My iPhone by doing Settings > iCloud > Find My iPhone = "On" on the device.

  • How to get the list of active devices in current wifi network?

    Hi All,
    I am going to a start a new Network based app. So please any one give me an idea on the below question.
    How to get the list of active devices in current wifi network?

    Nope I want the log-in user to retrieve its Group where he is belong. I have this following code
    strUsername = Request.getParameter("username").toLowerCase().trim()+"@dev.test.com.ph";
    strPassword = Request.getParameter("password").toLowerCase().trim();
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, INITCTX);
    env.put(Context.PROVIDER_URL, MY_HOST);
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL,strUsername);
    env.put(Context.SECURITY_CREDENTIALS, strPassword);
    // enable tracing
    env.put("com.sun.naming.ldap.trace.ber", System.err);
    // Create the initial context
    DirContext initCtx = new InitialDirContext(env);
    // Get the target context
    DirContext targetCtx = (DirContext)initCtx.lookup("");
    SearchControls constraints = new SearchControls();
    constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
    // Perform the search on the target context
    NamingEnumeration enum = targetCtx.search("","(userPrincipalName="+strUsername+")",constraints);
    javax.naming.directory.Attributes attrs;
    NameClassPair item;
    String[] attrIds = new String[]{"MemberOf"};
    // For each answer found, get its "Groups" attribute
    // If relative, resolve it relative to the target context
    // If not relative, resolve it relative to the initial context
    while (enum.hasMore()) {
    item = (NameClassPair)enum.next();
    Out.println(item);
    attrs = targetCtx.getAttributes(item.getName(), attrIds);
    Out.println(attrs + "<br>");
         initCtx.close();
    It returns all this string :
    {memberof=memberOf: CN=CMCanadaRD,OU=Groups / Teams,DC=dev,DC=test,DC=com,DC=ph, CN=iMngrCanadaRW,OU=Groups / Teams,DC=dev,DC=test,DC=com,DC=ph, CN=Domain Users,CN=Users,DC=dev,DC=test,DC=com,DC=ph, CN=Backup Operators,CN=Builtin,DC=dev,DC=test,DC=com,DC=ph, CN=Administrators,CN=Builtin,DC=dev,DC=test,DC=com,DC=ph}
    How can i retrieve the Group named CMCanadaRW and CMCanadaRD on the Attribute?
    Thanks

  • I am currently managing 20 iPads on a macbook. I would like to manage the same 20 iPads on a new macbook pro. I have logged into the iTunes account on the new machine and see our apps but not the devices. How do i get the devices to be shown on new comp?

    I am currently managing 20 iPads on a macbook. I would like to manage the same 20 iPads on a new macbook pro. I have logged into the iTunes account on the new machine and see our apps but not the devices. How do i get the devices to be shown on new comp?

    Has anyone used apple cpnfigurator for this purpose?

  • Does anyone know how to get the vendor ID and product ID for a USB device in NI-Visa? TIA

    Does anyone know how to get the vendor ID and product ID for a USB device in NI-Visa? TIA

    Hello,
    Exactly which USB device are you referring to? Is the device a NI product?
    The Product ID for National Instruments DAQPad-6020E is 0x12C0. The USB vendor ID is 0x3923. This is a 16-bit hexadecimal number(1093) (that is decimal 4243).
    Also, here's a document on our website that will help you in configuring NI-VISA to control your USB device:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/6792BAB18242082786256DD7006B6416?opendocument
    Swapnil P.
    National Instruments Engineer

  • How to get the location of the browser?(pt_BR, en_US, es_ES...)

    How to get the location of the browser?
    example: pt_BR, en_US, es_ES...

    Hi Eduardo Cordeiro,
    Sorry in reaching you late...I was out on a trip...
    You need to put the javascript in your Flex application html wrapper file ...in which your  Flex application SWF is embedded.
    Write the Javascript function in your html file as below :
    function getBrowserLanguage()
      var browserLanguage = navigator.browserLanguage;
      return browserLanguage;
    //In your mxml File you can access the JavaScript function in your MXML as below:
    var browserLang:String  = ExternalInterface.call('getBrowserType');
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • How to get the health , performance information and about the services run on devices that have connected to the system center?

    Hi All,
    I want to know how to get the health , performance information and about the services run on devices that have connected to the system center to my c# application. Also I need to know about the information of databases that have connected to system center.
    I will appreciate your feedback
    Thank you

    Hi,
    You can configure service monitor for the required service on the server
    refer below link for how to configure service monitoring
    http://www.bictt.com/blogs/bictt.php/2011/03/17/scom-monitoring-a-service-part3
    You can use SCOM SDK to connect to the scom server using c# and get required information
    http://msdn.microsoft.com/en-us/library/hh329086.aspx
    you can find the database in below registry path on management server
    HKLM:\SOFTWARE\Microsoft\Microsoft Operations Manager\3.0\Setup\DatabaseName
    Regards
    sridhar v

  • When I purchased a music app from itune store. This got downloaded in Itune maedia/Mobile applications.How to get the songs in that app to my  itune library or on to IPAD?

    I  or tranfer to my librarypurchased from Itune store a Music app. It is downloaded into intune media/mobile applications. How to get the full album msic/songs into my itunes library or on tomy IPAD? It doesnot open out. Can anybody suggest a way?

    If you have a music downloader app (depends on which you have), plug your iDevice into iTunes, go to your device (on itunes), go to your apps, scroll down, and select the app thats holding your music, click on "Save As" (should be located bottom right corner), save the music to your specific folder. Once done, follow through this: Adding music and other content to iTunes and you should have your music on your iDevice music app.
    Hope this helps.

  • How to get the memory address of an array (pointer in C)?

    I am writing an application that exchanges data with a PXI device via DMA.  Basically I will provide it a memory address and a direction, and it transfers the data.  I would like to give it the memory location of an array in LabVIEW, but I do not know how to get the memory location without doing a DLL call to C code that returns the pointer.  Is there an easy way to do this in LabVIEW?  Any help is much appreciated.

    A similar question was asked recently regarding strings. You cannot pass pointers in LabVIEW as you do in C. You can pass an array to a DLL, but that means you would need to write a wrapper DLL. Be sure to read the section in the LabVIEW Help on calling code from text-based languages and also take a look at the "Call DLL" example that ships with LabVIEW  - it contains many examples of how to deal with various datatypes.

  • How to get the most of PowerBook G3 233Mhz

    its been a while since I dint post on Apple discussions, about one year ago, I was thinking I would get a PowerBook G3 Pismo, one year later evry thing was diffrent, I ordered a 233Mhz PowerBook G3 Wallstreet (It was the only choice with the money I had) and now I really want to know how to get the most out of it.
    I want to do the following
    -Browse the web
    -Listen to music
    -do keynote presentations
    -word proccesing
    -storage
    The powerBook that I am going to get comes with a nice 233Mhz G3 chip, 64MB of RAM a 12 inch screen and running Mac OS 9.2.2 (my favorite).
    I have alot of knowledge on old Macintosh, and I know almost anything if some asks me things about acient macintosh, but you know, some times you need a little help from other mac fans and share your thoughts...
    So what apps should I get? I do know that if you use the commom low requirements apps, It will run smoothly.

    iBook,
    Yes, you can add a USB 1.1 or 2.0 PC card to the PCMCIA/CardBus slot. A few suggestions:
    -Combo FireWire/USB CardBus PC cards do not work well with OS 9.x; either the USB or FireWire port does not work. This is a software problem in 9.x since these combos work fine under 10.x. My suggestion would be to buy a separate USB PC card and/or FireWire PC card for your connectivity.
    -USB 2.0 PC cards will only run at the slower USB 1.1 speeds under 9.x but this is fine for printers, etc. If you wanted to connect an HD, I would use the FireWire interface.
    -FireWire and USB PC cards supply insufficient bus power to power a FireWire or USB HD; any device like a printer or HD will have or should have its own power supply.
    -Since FireWire and USB are not native to the Wallstreet, the necessary USB and FireWire extensions have not been installed. Open your Extensions Mananger and see if you have these extensions:
    USB Mass Storage Extension
    USB Support
    USB Mass Storage Support
    USB Software Locator
    USB Device Extension
    If the above are not present, I recommend you download this USB extension package from OWC; they assembled various version numbers of the Apple USB extensions to correct a problem OS 9.2.2 has with USB PC cards but they can be used with any version of OS 8.6 > 9.2.2.
    http://eshop.macsales.com/tech/ftp/usb/usbextensions.sit
    A file titled 'usbextensions.sit' will appear on your desktop assuming you have set the browser to download files to your desktop. Double-click the file to decompress it and you will have a folder on the desktop with these extensions:
    USB Support v1.4.1
    USB Software Locator v1.5.6
    USB Device Extension v1.5.6
    USB Mass Storage Support v2.0.4
    USB Mass Storage Extension v2.0.4
    Highlight all five extensions, then drag them on top of the closed System Folder icon; they will be automatically installed in the Extensions folder. Before restarting, go to Apple menu > Control Panels > Energy Saver > Advanced Settings and uncheck 'Allow Processor Cycling' for •BOTH• the power adapter and battery. If not unchecked (disabled), the powerbook will freeze with a USB PC card.
    Now restart to make the USB extensions active. Insert the USB PC card; you should see a USB PC card icon on the desktop. Connect a USB mouse (there is sufficient power for it) and test the USB PC card.
    If no desktop USB PC card icon appears, make sure the PC card is fully inserted. You may have to place a hand on the side of the powerbook opposite the PC card slot so you can push hard. If the card fails to seat, the card slot may be in the locked position. Push an opened paperclip into the small hole next to the slot to unlock, then try the card again.
    http://docs.info.apple.com/article.html?artnum=16167

  • I downloaded and bought a movie from iTunes on my iPad and now want the same movie on my MacBook Pro but its not offering me to download it, it giving me the options of buying it which I already did. How I get the movie onto my MacBook?

    I downloaded and bought a movie from iTunes on my iPad and now want the same movie on my MacBook Pro but its not offering me to download it, it giving me the options of buying it which I already did. How I get the movie onto my MacBook?

    You can connect the iPad to your Mac's iTunes and do File > Devices > Transfer Purchases, that should copy it over to the Movies part of your library.
    Depending upon what country that you are in, and whether the film studio allows it, you might also be able to re-download it on your Mac via the Purchased link under Quicklinks on the right-hand side of the iTunes store home page.

Maybe you are looking for

  • Driver program for (request for quotation) /SMB40/MMRFQ_A smart form

    Dear friends, I found a standard smartform for request for quotation ie /SMB40/MMRFQ_A..but i am unable to find a driver program for this standard form.. Also checked in TNAPR table and nace t code for driver program. pls tell me the driver prog for

  • Horizontal mapping question

    Hello, I have and Person, Post and Organization extending Party class. I map Person, Post and Organization class each on its own table Now Person and Organization have a bi-directional association with each other (via inverted relation) - Organizatio

  • How to get photos onto TV

    Hi folks, I'm a newbie and hope you'll tolerate me gatecrashing. It's just that I'm in a pixel nightmare and in desperate need of help. I'm using PE 3.01 and have almost 3000 pictures processed. Rather stupidly, I figured I'd leave the printing worri

  • PS CC trial crashes on startup if graphics are enabled

    I recently got a PS CC trial, and when I open it, it crashes immediately. Then when I open it again a dialog comes up saying there's a problem with the display driver and graphics have been temporarily disabled. If I enable them, the cycle starts aga

  • PR release staregy

    Hi , I want to Update PR "Requisitioner" field value with "PR Created by" after the final release. I have found program "LMEREQF08" . But it is standard program, i can't got for that. Please suggest me user exit or any program to update  "Requisition