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

Similar Messages

  • I cannot send a text message to anyone with an android phone. Any suggestions?

    I just got an iphone. I cannot send a text message to anyone with an android phone. I have tried turning imessage off and also wifi off. Any other suggestions? Most of my family including my husband currently have android phones and I need to be able to talk to them. I can send messages to iphones and ipads but not their phones. What can I do??

    I don't see the "Start new conversation from:" I spent 1 hour and 40 minutes last night on the phone with Verizon. We completely reset the phone after backing it up to icloud. His conclusion was I need a new SIM card and I will not be able to go take care of that until tonight. I don't know if that will fix it or not but that is what he said...

  • Upgraded to  new samsung galaxy s4 from a I phone 4 and I can't receive text messages from anyone with an I phone.

    I upgraded to a new Samsung Galaxy S 4 from an IPhone 4 and I can't get text messages from anyone who has an IPhone.

    Speak with an AppleCare advisor either over the phone or by chat.
    They will remove your phone number from the iMessage system. That's it! Otherwise after 45 days your phone nymber will automatically be removed from the system. Now or later, it's your choice.
    http://www.apple.com/support/contact/   (choose Get Started)
    Cheers!

  • Is anyone having issues with Windows 8 phones not loading mobile versions of websites?

    I was just wondering if anyone with a Windows phone is having problems loading the mobile site version of a Muse site when viewed on the phone? or if there is a known bug or incompatability?

    Hello, same issue for me.
    The site display whith the desktop version.

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

  • I have ios7 on my iphfone 4 I now have a iphone5 with ios8 I cannot access the cloud to download my contacts and apps.  the error is both phones need to be ios8,  my iphone4 will not allow changing to ios8.  can anyone help.  Thanks

    i have ios7 on my iphone 4 I now have a iphone5 with ios8 I cannot access the cloud to download my contacts and apps.  the error is both phones need to be ios8,  my iphone4 will not allow changing to ios8.  can anyone help.  Thanks

    Contact Apple and speak to someone in account security.

  • HI,had a problem with my iphone4,phone was reset@ Apple store now it will not sync with my itunes.Anyone know what i need to do please

    Hi,had a problem with my iphone4, phone was reset at the Apple store BUT now it is not being recognised by my computer. Itunes is up to date & i have tried my usb with my ipod & everything is ok.Any idea what to do next please??

    iOS: Device not recognized in iTunes for Windows

  • Anyone else with a basic phone getting bad service?

    I bought the Casio G'Zone Rock a long time ago because I was very happy with the Boulder (I even passed the Boulder on to my son's number and it STILL works great). I have had no reason to upgrade my phone or my plan for a number of years (in fact, the plan I have isn't even offered anymore). I'm starting to get the feeling that, because I'm not a cash cow for Verizon, they are intentionally reducing the quality of my service.
    For example:
    I can't keep a solid connection in my own one story home, but anyone with a US Cellular or T-Mobile phone has no trouble at all.
    I will get a voice mail and not get a notification about it until more than 8 hours later.
    Sometimes when I try to make a call, the phone has the 3G status and full connection bars, but it will timeout and never actually connect to make the call.
    All of this is pretty recent too, meaning it never used to be this way. Am I the only one experiencing this? These are the same reason why I left AT&T and switched to Verizon.

        Basic phones and smartphones alike, we want all our customers to have great service with us! We're not picking on you at all. If the Boulder is still working great in the same areas you're having these recent troubles with your Rock, then we are definitely need to look into something going on with your phone's hardware. Electronics can wear down over time, so it's possible the phone that's been working may have begun to deteriorate. Here's a few things to try:
       - Update your phone's roaming list by dialing *228 send and selecting option 2
       - Go to Menu>Settings & Tools>Phone Info>SW / HW Version and ensure the Software Version shows C731M070
    If you don't use the Boulder in the same places as the Rock is having trouble, then we may need to check out the area. Feel free to let us know your zip code so we can take a look at the area. Also, is the service trouble only happening when you're inside your home or when someone in particular is trying to call?
    Thank you
    JenniferH_VZW
    Please follow us on Twitter @vzwsupport

  • Hi all when I send a text to a contact (iphone4s) the contacts name changes to a phone number and the name is lost. I then have to resave it again, googled it but can't see anyone with the same issue, any ideas ?

    Hi all when I send a text to a contact (iphone4s) the contacts name changes to a phone number and the name is lost. I then have to resave it again, googled it but can't see anyone with the same issue, any ideas ?

    There is another setting for "Start Conversation from", that needs to be set to phone number.

  • Has anyone successfully managed to get VZW to raplace Fascinate with a different phone?

    Has anyone successfully managed to get VZW to raplace Fascinate with a different phone?
    If so, could you share with me on how you convinced VZW to do it?(which department?)
    I love my Fascinate, but not when it can't get calls.  I would prefer to have a Fascinate with
    zero problems, but that appears unlikely.   So I guess my best option is to get a different
    phone(Samsung, Motorola, or others)
    Thanks!

    I successfully got a swap out of my Fascinate with a Droid Incredible 2. 
    I private messaged VZW agents on these forums the following message and through the course of 3-5 days I successfully was granted an expception and allowed to swap out my device (with no contract extension or upgrade eligiblity extenstion). This was after several phone calls and numberous wasted hours trying to convince them the Fascinate was not a good phone. 
    If I have been rude in any way during this message, I sincerely apologize, I did not mean it. I am a frsutrated owner of a bad piece of electronics. I am aware it is not VZW's fault, but I think you need to stand beind the phones you sell and rectify situations that are bad. 
    I am a Samsung Fascinate owner and to say the least this phone has been the biggest source of frustration I have ever had to endur in the 20+ years I have owned a cellular phone. 
    The have been number rous issues with my original phone and the replacement (certified replacement) phone I have gotten. These issues include, but are not limited to:
    1. glitchy UI
    2. constant forecloses and freezes
    3 auto reboots 
    4. inoperable phone for 20 - 30 minutes at a time. Can't access apps, can't make calls, can't send texts, phone is useless to me.
    5. not receiving calls/texts
    6. missing voicemails
    7. increased battery drain
    8. random flickering of screen lights while using the phone.
    Now I have performed the following steps at the suggestion of VZW tech support on both my orginal phone an replacement phone
    1. Hard resets, factory resets 
    2. Soft resets,
    3. Clear cache on the phone
    4. Removing apps 
    5. Updating roaming capabilities 
    After all these issues and all the suggestion on fixes, the phone still performs poorly and is not a reliable phone at all. Like I stated previously i am beyond frustrated. 
    I am aware these problems are software issues not a hardware issue; a refurbed Fascinate will not correct them. Hard resets do not fix the problems. I have scoured the message boards on this website (VZW forums) and I am aware the VERIZON is aware of all these issues with multiple Fascinate users.
    I am asking to be allowed to swap my Fascinate for another, DIFFERENT model of phone. I am fine if that is a refurb, as long as it is a DIFFERENT model of phone and not a Fascinate. I know this is possible because users on your very own forum are stating it has been done. I am asking it be done in my case
    Best thing I can say is stick to it....sitck to you guns and don't back down and don't be allowed to think there is afix when there is not. 

  • Anyone know how to get to the security screen with a " Crashed" phone?

    Getting the message "Restore Needed" but it says I can't connect with my Iphone because my phone has a security code. I can't get to the Security code screen on the phone.  Anyone know how to get to the security screen with a " Crashed" phone?

    Restore the phone on the same computer it was last synced to and it will not require the unlock code.
    If you don't have access to that computer you will have to use Recovery mode, which will wipe all content. See: http://support.apple.com/kb/HT1808

  • HT204088 How on earth did someone hack into my iTunes account and charge my visa/debit card? I didn't know until I got my bank statement with a fake phone # to call iTunes has this happened to anyone else?

    How on earth does someone hack into my iTunes account and charge my visa/debit card? I got no emails from iTunes, so I know it's not them. This has happened twice to me and it's after I take out my credit information. I found out because of a bounced check, plus my bank statement had all the charges on it. They start small with just a few dollars but they do it every day sometimes twice a day. Then next to where they tell you who charged it, it says iTunes with a bogus phone# to call? In total they stole $224 from me. I was lucky my bank refunded the money stollen. Has this happened to anyone else?

    People get their accounts hacked all the time. It's unfortunate, but true. To prevent this in the future, you need to:
    - choose a good password, with a mix of upper and lowercase letter and numbers, that someone wouldn't be able to guess by stalking you on social media sites
    - be aware of surroundings when entering a password, to be sure nobody's looking over your shoulder
    - be cautious of what you do on open wifi networks (ie, networks that do not require a password to join)
    - use a different password on each site
    - use a password manager so you don't have to remember all those different passwords

  • How do I get the contacts from my mac to syn with icloud? I need to back up my phone and don't want to lose my contacts when I get a new phone.

    How do I get the contacts from my mac to sync with Icloud? I need to back up my phone since I will be receiving a new one tomorrow and the icloud contacts are not the same as the ones on my mac.  Help me

    OS X Lion. 10.7. Your profile says your running 10.6.8, which is Snow Leopard. You need 10.7 to use iCloud with your Mac.

  • Hi all, i can't sync over wifi between my iPhone 4 and Windows 7 64 bit, wifi sync works with the same phone and my Windows 8 machine, tried solutions from other threads with no luck, just thought i'd see if anyone else had any ideas, thanks.

    Hi all, i can't sync over wifi between my iPhone 4 and Windows 7 64 bit, wifi sync works with the same phone and my Windows 8 machine so the problem seems confined to Windows 7. I've tried solutions from other threads -
    Making sure everything is allowed through firewall
    Rebooting phone/laptop/router
    Disabling ipv6
    Disabling all networks except the one curently on
    Re-installing iTunes
    Restoring iPhone
    No luck with any of those unfortunately so i just thought i'd see if anyone else is still without wifi sync after trying those as well and if you ever found a fix, thanks.

    I just wanted to leave a note that it's working now. I'm not sure if it was the latest iTunes update that got it working or that i decided to start a new library instead of using the one i had backed up on Windows 8 (it didn't occur to me to check using the old library when i re-installed iTunes). But if anyone is having this problem, it might be worth trying again with a new installation of iTunes to see if the latest update works for you, and if not, try using a fresh library instead of a backup (by fresh library i mean discard your old library completely and start a new library, not just restore as new iPhone, a whole new library).

  • My iPhone 4s is not switching on, I connected it to itunes thru my Windows 7 laptop and it says phone needs to be restored. I clicked okay and it started the process however the progress bar with the apple logo is on the screen, progressbar do not start

    My iPhone 4s is not switching on, I connected it to itunes thru my Windows 7 laptop and it says phone needs to be restored. I clicked okay and it started the process however the progress bar with the apple logo is on the screen, progress in the bar did not start yet after 5 hours. Some one please hep me.

    I did put it in DFU mode but its still not working, although everytime it shows your iphone needs to be restored. Kindly help.

Maybe you are looking for