Cell phone GPS

Hello.

I'm working on an application that must know the location users but without precision.

I'm trying so get the location using the cellular network.

First of all, I get LocationProvider:

C criteria = new Criteria();
c.setHorizontalAccuracy (Criteria.NO_REQUIREMENT);
c.setVerticalAccuracy (Criteria.NO_REQUIREMENT);

c.setCostAllowed (true);
c.setPreferredPowerConsumption (Criteria.POWER_USAGE_LOW);

LocationProvider LP = LocationProvider.getInstance (c);

Then I ask a location:

Location = lp.getLocation (timeout);

But what ever the time-out is, I never answer.

I always end up with a LocationException when the time-out expires.

I tried on storm and Bold2 with os 4.7.0 and os 5.0.1.

On the same phone, I installed Google Maps and it immediately found my position with a 500 precision meter that would be perfect for me.

I use the same sim card on an Android phone and my app was able to get the location.

Does anyone have an idea of what's going on?

Thanks in advance for any help.

Mike

Take a look at this thread that shows how to get an approximate solution using cells GSM + TRAY using Google Maps API: http://devblog.blackberry.com/t5/Java-Development/Is-it-Possible/m-p/422658

Note that the marked code as the response contains some problems which are solved in a later comment by peter_strange.

Tags: BlackBerry Developers

Similar Questions

  • HP EliteBook 840 G1: GPS Module - find cell phone lost / stolen eventually

    Greetings.

    One of our new cell phones seems to be missing and we cannot find it within the company.

    Either this is move - or in the worst case scenario, stolen.

    As these laptops has a GPS module, can we track down with the help of HP?

    No third-party tools when installed from our part for this.

    Best regards

    Paul.

    Dear customer,

    Welcome and thanks for posting your question on the Forum of Support HP

    Answer to your question is 'NO' as we cannot follow the specifications

    What you can try to:

    1. call HP Technical Support and report this problem

    2. get a case for your conversation with the representative number immediately

    3. Please find the reception of your laptop, scan a copy of it and send you a copy of it in your Inbox

    4. Please contact the nearest Police station and make a complaint about your laptop is stolen

    5. delivery of the hard copy of the invoice of your laptop the cops

    6. keep in touch with cops and tracking to get an update as and when you need

    Note: HP is not responsible for any loss of data or information on your laptop because there is no way to track your

    Laptop

    Hope this helps, for other queries in response to the post and feel free to join us again

    * Click on the white button on the right to say thank you Thumbs Up *.

    Make it easier for others to find solutions by checking a response "Accept as Solution" if it solves your problem.

    Thank you

    K N R K

    Although I am an employee of HP, I speak for myself and not for HP

  • Clipart discoloration on other cell phones

    I created a piece of clipart and posted on facebook to share. People who have seen on their cell phone has commented that he was very yellow, while on my laptop, that the colors are just like I want them - not too yellow. My question is: How do you get the colors of my clip art are on all media? -Also, is this too yellow on your computer/device? (Hair must be very yellow. The skin should be beige. The dress and the bow are a Pink Purple-ish. The shoes are purple). Thanks in advance.

    girl-png24.png

    Nicole,

    I'm afraid that I have no idea on (the possibilities of) calibrate the screen of a laptop and looking over their shoulders, I was less than impressed (I always appreciate my Sony Trinitron GDM FW900 flight evidence). As the samsung s5, I had to look it up to make sure that what she was (a few years back I haven't bought some parts (the successor using the same battery model phones) to my present no phone mobile camera/GPS/what either just before the left secondary market in the United Kingdom; and now I would have to pay in Taka if necessary).

    I believe that the differences in color, for an approach calls I hope temporary where you look at the different monitors/screens during the creation of the work and/or establish and use the suggested built in tones/gradients, that you mentioned, especially if there is no way to establish a true fundamental representation; and it must be difficult to work without it.

  • Cannot connect my cell phone to my computer via bluetooth

    Cannot connect my cell phone to my computer via bluetooth

    Cell phones are not supposed to be connected via Bluetooth to a computer.

  • Hello, I received an SMS on my cell phone to tell me that I have won the prize promo online Mozilla, is - it true? Kindly detials below

    Hello, I received SMS on my cell phone
    "You have won (GBP 750 000) in the promotion of Mozilla online.
    To claim the price please contact our Department of claims for confirmation:
    [email protected]
    so bravo
    Ms. Carolyn Keffer
    Mozilla Firefox Inc."
    The sender's phone number: + 2347011812533

    It was a hoax because it was not sent by Mozilla.

    See http://blog.gerv.net/2011/08/hoax_mozilla_firefox_online_promo/ this has arisen for a few years now.

  • How can I DELETE MY OLD CELL PHONE NUMBER

    I can't get my settings my old cell phone number. I need a code to reset my password. Took my new phone number, I receive my code sent to the old cell. Help, please!

    How is it that is related to support of Firefox?

  • Somehow, my friends music downloaded on my phone and now I can't sync music from my computer laptop iTunes using my cell phone?

    Friends of music somehow got synced my phone. Never, I plugged my phone into his cell phone, so this is very strange. Now when I try to sync music from my laptop to iTunes on my iPhone, as I have done a million times before, it will not be synchronized. I need to get my phone to sync with my laptop and my music again as soon as possible

    You use the same Apple ID? What happens when you try to sync music from your laptop to your iPhone? You receive an error? It would be the only explanation as to why you are unable to synchronize with your laptop.

  • Air 2 iPad 64 gb wifi cell phone

    I have had my ipad air 2 cell phones 64 GB version wifi 9.3.1 for 6 months and it froze on me for the first time tonight. I did a hard reset that worked, but now the screen lapses changing apps in-between. I am just updating my iPhone 6 version 9.3.2 and tried to update my ipad to the latest version 9.3.2 but now me not to make it stating that "no updates found/required. I don't know if it is a problem of IOS but my ipad still shows the version 9.3.1 and my iPhone is showing 9.3.2 version. I'm not sure if I have to wait for the update to appear in the next 24-48 hours.

    Will keep you posted

    Go to settings > general > storage & use iCloud > manage storage (the first) > and if there is an update, delete it. Then go to settings > general > Software Update and try again.

    If that doesn't work, try updating through iTunes on your computer.

  • How to activate a SIM free iphone 6s plus will detect a sim? I don't want a cell phone or voice

    Apple iPhone 6 s more SIM more memory each option free latest OS and Applecare happened today. I have absolutely no need to voice or cell phone. A; I want to, it's an iPad the smallest size. When I try to turn it on I get a required message of SIM.  I used an iPhone 4 without a sim card, but it was destroyed... I use Tracfone voice and used 48 minutes over the past twelve years and do not want to waste money on the cell. How can I use it without a sim card?

    You need a sim card in the phone to activate or restore it... no way around that fact. So, beg, borrow, or buy a sim card if you want to activate the phone. You can remove the sim card when the phone is turned on.

  • I don't have a cell phone (land line only)

    Download of Firefox will not workk without cell phone number. I only have AT & T landline. What should I do now?

    Edited to remove phone number - Maurane

    Firefox/mozilla does not ask for personal information before and during the installation & download! always get the program from the official site to getfirefox.com.

  • Can not backup iPhone 5 or connect to cell phone applications

    I've just updated to 9.3.1 9.2, thinking that Apple had solved all the problems reported with 9.3.  However, now my phone is not connecting to cellular telephone applications, siri does not work, and the phone will not save.  It works fine when connected to wifi, but once I leave the House, none of my apps won't work (letters of google maps, Facebook, apple, anything that requires cell, that's all!)  I made all the simple fixes that I have known and that you can find on the internet: restart button apple button and power off to restart, turn off cell phone and turn it back on, turn off wifi and turn it back on, reset the network, iCloud is disconnected settings and reconnect, deleted all my photos/reset the backup settings so there is a lot of storage on my cloud , is found on my head, turned left, and none of it worked.  I'm ready to reset all but without a backup, I'm afraid to lose all my contacts.  Anyway around this?

    Does anyone else have this problem?  Suggestions and help that I have already mentioned above is welcome.  Thank you. Unhappy in Portland and the thought of Samsung is in my future.

    Backup to iCloud only works in Wi - Fi, you can not use a cellular network connection to backup your phone to iCloud.

    If the iCloud backup does not work, back up your phone to your computer using iTunes and set it back to factory settings, and then restore from that backup.

    On safeguards in iCloud and iTunes

    Use iTunes to restore your device to factory settings - Support Apple iOS

    Restrictions put in place in settings/general/Restrictions?

  • HP ENVY laptop - 15-ae101nx: when I put my cell phone battary trolling the games what should I do?

    When I put my cell phone battary trolling the games what should I do?

    Games run perfect when I put plugged in, but when I play on games battary became late?

    Help me.

    Hello @XxHamodyGamerX,

    Thank you for visiting the HP Forums!  You have come to the right place to ask questions, find solutions and get help from others in the community!

    I read your post on game performance below of your DESIRE for computer laptop-15-ae101nx then on the battery and wanted soft hand for you.

    This document should take you in making adjustments to the different systems of power supply on the system. Battery power, it is probably defined by default on energy saving , which will reduce the performance of the system in order to save energy and extend the time between charges.

    Microsoft also has very detailed information here on different powers available plans.

    Please let me know if this information helps you solve the problem by marking this post as accept as Solution, this will help others easily find the information they seek.  In addition, by clicking on the Thumbs up below is a great way to say thank you!

    Thank you.

  • Why have I no internet connection, no cell phone, no wi - fi on the iphone after updating ios 9.3.1 5?

    Why have I no internet connection, no cell phone, no wi - fi on the iPhone 5 after update to iOS 9.3.1?

    Settings network is possibly damaged.

    Tap settings > general > reset > reset network settings

    Then see if your iPhone can connect to a Wi - Fi network.

    You will need to enter your Wi - Fi password.

  • The Pro 9.7 IPad wi fi and cell phone with Verizon prepaid data

    Unfortunately, my wonderful inch Mac Book Pro 17 2009 did the bone yard. Consider buying the iPad 9.7 Pro with keyboard Smart as his replacement. Change of situation so now I can to portability and having the availability of mobile data is a great advantage.

    It looks like the people at Verizon are advising me make sure you get the compatible Verizon. OK, they want to sell me a plan but wouldn't it be a simple thing to get prepaid Verizon or I am wrong? I think read there is CDMA and GSM capacity. Something tells me that it is not a problem and I could use any carrier choose, but my face to face shopping experience has been the roadblock after roadblock - I feel they are trying only to sell me what they want me to buy and not what I want. The smart keyboard is also - which are available with backlight?

    Hello Sandy,

    Thank you for using communities of Apple Support.

    I see you have a few questions about the new iPad Pro and Smart Keyboard. The following article provides some basic information about the iPad Pro: iPad Pro

    For cellular connectivity.

    All cell phones + Wi - Fi models are unlocked, so you can pop in a SIM card at any time you want to connect. For added convenience, a SIM Apple is already installed on the iPad 12.9‑inch Pro in a number of countries. And 9.7‑inch Pro with an integrated SIM Apple iPad is available everywhere in the monde4, so it is easy to buy a package of cellular data directly on your iPad without commitment long term.

    More information on the Apple Sim Card are available here: Apple Sim

    The smart keyboard is not available with backlight. You can discover the keyboard Smart here: Smart Keyboard for iPad Pro

    Best regards.

  • Just upgraded my iOS 9.3.1 ipad2 and my cell phone has been disabled. ATT has checked the settings and changed the SIM cards. This can be corrected?

    Just updated to iOS 9.3.1 on my ipad2. My cell phone has been disabled. This can be corrected?

    I have the same problem

Maybe you are looking for

  • Firefox showing users that Java is out of date

    The latest version of Java on WIndows PC, is currently Java7 U51. Java8 was released in beta version. When you do a check in Firefox to check if your plugins are up to date, Firefow tells you that Java is obsolete. He wants that you upgrade to Java8.

  • How to view the FILES GMD

    original title: DCM FILES I have a disk that contains files of DCM, I must be able to visualize, how can I do this, when I can't find any folder to see them go in Vista? Thank you

  • Additional Vista wallpaper

    Background research of additional screen from a safe source, malware-free.  Microsoft has a collection somewhere?

  • How can I replace the big picture with the poplet image and add an internal focus on the big picture?

    I need to replace the enlarged image with poplet image when you click on & also need a zoom internal on the big picture. It doesn't seem to be a simple way to do this. Js is available for this please?

  • Prevent Virtual Machines with floppy disks

    HI guys,.I have no requirement for a VM have a floppy disk. I do not understand this material in one of my model, but I have noticed that sometimes when I deploy a vm forms a model, he gets a diskette. Why this might be and is there a way to prevent