J2ME and Bluetooth

Hi all,
Can anyone tell me how to use Bluetooth in J2ME? Why I cannot accessed Motorola Bluetooth in Sun Java website?
Does anyone know abt this? Thanks.

Hi,
you need the JSR-82 for accessing Bluetooth of mobile phones. BUT: this has to be implemented by the manufacturer. If he does not, you are not able to use it.
The classes you can download from http://www.jcp.org/en/jsr/detail?id=82 are only used for compiling your application. They contain no code (except "new RuntimeException" ;) ).
hth
Kay

Similar Messages

  • J2me and bluetooth: web browser

    Hi,
    I'm trying to develop a midlet which works like a common web browser. The idea is:
    -the midlet establishs a connection with the server using a RFCOMM connection
    -the server acts like a bridge to get some simple html sites over a normal socket conenction and transfer them to the client through the serial port connectio
    -the client through the browser midlet makes parsing operations
    The problem is that I'm not sure how to get these html files (server side) e send them to the client
    Maybe with a stream of data...
    Have you ever seen something similar... so I can get inspiration?
    Thank you very much

    Can somebody at least post what experiences they've had with certain phones when writing j2me programs for them?
    Thanks

  • Guide for J2ME PP to use RMI and Bluetooth

    hi
    i have a current project its about an Ordering System, and i was thinking of using ppc as an order client
    before i want to get on with this i was just wondering if i can get some help from here.
    i just want to ask would it be any problem if i use J2SE to write a server to communicate with the ppc using rmi methology and bluetooth as network device (USB bluetooth for PC). can some one please give me some direction of how to do it, or maybe there's a beta way to do something like this?
    do i just write the code as how you would normally write for rmi application for PC?
    do i need to use third party driver for bluetooth (PC and PPC)?
    btw my PPC is HP Pocket PC 2003 running Window CE and use J9 JVM
    thank you for in advance as i would really appreciate and so is others :)

    Hi,
    I have the same message "Error: Unable to query value..."
    But I can't read from serial port com8. I need to read data from gps, but first I want to read anything from com8.
    My application looks like that:
    import java.util.*;
    import javax.comm.*;
    import java.io.*;
    public class Porty {
    static CommPortIdentifier portId,tym;
    static Enumeration portList;
    private InputStream cos;
    private SerialPort porty;
    public Porty(){
         CommPortIdentifier portID = null;
         for (Enumeration portList = CommPortIdentifier.getPortIdentifiers();
              portList.hasMoreElements() ;) {
         CommPortIdentifier portId = (CommPortIdentifier)portList.nextElement();
         if (portId.getName().equals("COM8:")) {
              tym = portId;
         if (tym == null) {
         // Unable to find COM8
              System.out.println("No Com8");
         return;
         else {
         // found COM8
              System.out.println("Yes!!! Com8");
         try{
              cos = porty.getInputStream();
         }catch (IOException e){}
         System.out.println("Data from Com8");
         System.out.println(cos);
    public static void main(String[] args){
         Porty porcik = new Porty();
    What is wrog. Could samebody help me !!! What I suppouse to do !!! Could You send me same application, which is working and it reads from port.
    Thank You...

  • Which handheld devices support both J2ME and Wi-Fi?

    Which handheld devices support both J2ME and Wi-Fi?

    Hi,
    Got the Lumia CYan update yesterday hoping that it would fix my bluetooth problem. I have Cortana on my Hong Kong country variant but still bluetooth issue is not resolved.
    After pairing instance, the bluetooth does not re-connect on subsequent attempts (it does try to reconnect). On reconnect attempt it fails and presents "tap to pair" under the bluetooth network.
    Please help.
    Daman
    Lumia 1520
    Past: Icon, 928, 720, N9, N97(ugh)

  • MIDP and Bluetooth as Java Card substitute

    Hi,
    I'm a Java developer, but not a Java Card developer, so I'm curious about the opinions of Java Card developers. It seems to me that IR and Bluetooth enabled J2ME/MIDP devices could be used in many situations where Java Cards are currently used. Depending on the adoption rates of
    a) Bluetooth enabled computers, devices, access points, etc... and
    b) cell phones with both Bluetooth and J2ME
    It may soon (a year or two) become cheaper and/or more convenient to issue users without a J2ME Bluetooth phone, such a device, than to issue all users Java Cards.
    So, entrenched coders
    1) Is this migration sane?
    2) Is anybody doing it, now?
    3) How hard/trivial is porting the applications?
    Thanks,
    Curt

    I'm aware of the JSR, but what is the security element ?On Sun Tech Days I was told it should be a Java Card. ;-))
    The main advantage of a smartcard is that it provides a trustworthy and tamper-resistant environment.
    Please have a look at
    http://www.simalliance.org/portal_upload/SIMalliance_comm.PDF
    I quote from the SIM Alliance site:
    "Thanks to a defined standard, easy downloading and powerful operating systems displaying high quality graphics, J2ME phones are making their mark. This leads to the question with such success and a memory capacity up to 1000 times the (U)SIM, will this relegate the Smart Card to a second class citizen?
    While Smart Card cannot compete with a Java handset for the sexy aspects of applications such as graphics, the core attributes of a Smart Card offer a number of significant benefits to application delivery, execution and management. All of these features require privacy management, security, portability and one-to-one personalization.
    Wireless applications must be secure and robust. However, it is feared that operators' revenue streams and secure pipeline will be threatened by the free delivery of applications mimicking the loss-making Internet portal model.
    This is where the Smart Card, (UICC, (U)SIM, and equivalent), will play an essential role in providing security, building trust and protecting revenues for mobile businesses.
    The card will become an integral part of the architecture for distributed applications running at the same time on Server, Handset and Smart Card to leverage the respective benefits of each part of the infrastructure.
    By looking at the strong points of each of the Java standards, Java Card and J2ME are not competing technologies but instead can be used in tandem to create an "open" and "secure" infrastructure that operators and content providers need in order to increase their ARPU and diminish costs. At present this infrastructure does not exist but leading operators, handset manufacturers, content providers and (U)SIM suppliers are working to make it a reality."

  • We just added a new printer and bluetooth connection to our iMac.  Now iTunes does not recognize our iPads as devices.  Have already tried restarting everything.  Any other suggestions?

    We just added a new printer and bluetooth connection to our iMac.  Now iTunes does not recognize our iPads as devices.  Have already tried restarting everything.  Any other suggestions?

    You can try the steps recommended here: http://www.apple.com/support/ipad/assistant/itunes/

  • J2me and java card, need help to communicate

    we are trying to put together a reader to read smartcards using j2me and we figure that it would be easiest if we could develop it to work with java cards rather than standard smart cards, the problem is we get garbage when we communicate to it, the chip sends us crap, any suggestions what might be wrong, any calls we might be missing, has anyone worked with j2me and java cards or smart cards, any help would be appreciated.
    einar

    .... reader app and the ME behind it .... smells like mobile ....
    First of all - if you want to have one mobile application running on this just make sure that whatever is written in ME can use drivers from the reader chip ....
    Workin on the PC is something completely different. There was one good example how to develop one host application in Java provided with the JCOP tools long ago ... I don't know if this is now in the new Eclipse tools.
    But - there was a small API provided that can give you good hints what to do - and - once you have it on the reader side - you can easily integrate ME methods with this ...

  • Has anyone else downloaded iOS 7 on a 4S and found the WiFi and Bluetooth don't work anymore?

    I'm used to Apple products that "just work", but I'm not seeing it with the installation of iOS 7 on my phone (4S). I installed it earlier today, and the Wi-Fi and Bluetooth worked for about an hour, then just quit working altogether. The WiFi button is grayed out in Settings, and Bluetooth dosen't even display a button (all I get is a throbber that continuously spins). Trying to activate them through the "swipe-up" command center doesn't do the trick, and resetting the network settings also accomplishes nothing. Several reboots later, and I still don't have WiFi and Bluetooth.
    Has anyone else experienced this, and is there a solution? I may just decide to eschew iOS 7 and restore my pph

    After multiple attempts to restore and reboot, I finally decided to take a trip to my local AT & T store. They contacted Apple, and I explained the situation. I ended up moving to the iPhone 5, as my 4S was in the renew period. The 4S is still under warranty, so all I have to do is bring it to an Apple Store, where they will either fix or replace the phone. Looks like one of my kids will be getting a 4S :-)

  • TS1559 still no solution for greyed out wifi and bluetooth - what to do? been messing around with it for weeks and now discover I'm just outside of warranty period? WHAT?

    I am in such a predicament - phone not been quite right since the 6.1 update and I was tolerating the inconvenience of switching off and on etc etc for the past couple of months and now the wifi and bluetooth are totally greyed out all the time - did every restore possible including back to factory settings - still no luck - please don't tell me that trying all the solutions over the past 2 months that temporarily worked for a few days at a time will now mean I have timed myself out of the 1 year warranty? arghhhhh (I can't believe that such an issue will create the response 'oh well, your problem - best just buy another one' ???)
    I can't just drop everything and drive to the apple store and wait for hours every time there's a 'glitch' otherwise I may as well move nextdoor to the mall. They tell you to try and solve it yourself first - which I did - and now it's not responding to anything I try, will I be told - 'too late, out of warranty'???
    I see theres an update for the iphone 5 that fixes wifi bugs - what about us 4s owners? even my 3 year old 3gs is still working on wifi (haven't dared to update it!) so don't start telling me to expect that the iphone will only last 13 months - NOT AT $600 a piece
    This is madness and driving me crazy
    Please has anyone had any luck fixing this problem???

    well, you know how it is - glitches that usually resolve with a hard reset etc
    then a restore. then a factory restore....then ..... nothing fixes so I try the next step with apple online - fill out my serial number and find it is a couple of weeks out of date - and then with the holidays who has time to get to the apple store? this is my second 4s handset as it is - first one the glass cracked from L to R without any impact/damage etc - they changed it out automatically because it's a 'known fault' apparently - so technically, this handset is only 6 months old - but warranty is from original purchase date -
    never imagined it would turn out to be a warranty issue with the phone - and hey maybe when I get a chance to go to the apple store they'll be sympathetic, but I won't be able to get there till at least Jan 4th as it is. On the other hand, another iOS update might resolve the issue - but how long till that release? at the moment I'm having to use my old 3gs for wifi and 4s for phone!!!

  • HT201210 hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    Try the suggestions here to see if they resolve your problem:
    http://support.apple.com/kb/ts1559
    If these don't work you may have a hardware problem. Visit an Apple store for an evaluation or contact Apple Support.

  • Re: Windows Vista Ultimate 32-bit FN key and Bluetooth crash

    I have an old problem with FN key. I installed Vista and after a while, it stops working. In Windows, when I press the FN key it freezes about 3 seconds, a blue screen appears that tells me Vista has crashed, a memory dump begins and then the laptop restarts. And now, bluetooth doesn't work anymore and if I try to enable it it dows the same thing.
    P.S. The Windows is new installed (4 days), and has automatic updates to date.
    I reinstalled Toshiba Value Package, Bluetooth Monitor and Bluetooth Stack.

    LE: I uninstalled Value Package and it doesn't give me the blue screen anymore. The FN key works, but it doesn't display that menu on the top of the screen when i press it, but the functions work.

  • Yoga 13 WiFi and bluetooth issue resolved

    Unfortunately, I also met WiFi problems, but also found unexpected and sad solution.
    Wifi worked pretty well at working place, but had problems at home. As an experiment I brought WiFi router from the working place home. It did not work!
    At home I used pretty old keyboard and mouse plugged into passive USB hub. As soon as they were disconnected, problems disappeared. WiFi was also stable after I plugged power supply into the USB hub.
    We are making 24-bit analog-to-digital converter that connects to the PC via USB. I exactly know its current consumption (300 to 330 mA) and know that it correctly handles USB rules about power regulations. Maximum current, specified by USB2.0 standard, is 500mA, so consumption of our ADC is within limits. As soon as I plug this ADC in, WiFi connection immediately disappears at the working place.
    In the case of other devices, such as USB flash drive, power consumption may depend on the activity, increasing as it writes or reads something, and decreasing at the moment of inactivity.
    I'm pretty sure that Lenovo placed their WiFi/bluetooth module on the same USB hub with right-side USB2 connector. Any device, that requires energy, being plugged into USB2.0 port, immediately destroys WiFi (and presumably bluetooth) and it is rather hard to get it back alive without special dancing around.
    So, conclusion: never plug anything into USB2.0 port, if you need WiFi. This decreases number of available USB ports from two to one. Lenovo team should be blamed for that, not driver manufacturers or board manufacturers - Lenovo did non do its construction job well.
    I am not sure, that all WiFi and bluetooth problems of Yoga discussed at this forum have the same reason. But in any case incorrect implementation of USB2.0 power should be considered before any other reason of malfunction.
    Car manufacturers recall their products in the case of a failure. What about computer manufacturers?

    Citation from Wikipedia:
    The USB 1.x and 2.0 specifications provide a 5 V supply on a single wire to power connected USB devices. The specification provides for no more than 5.25 V and no less than 4.75 V (5 V ± 5%) between the positive and negative bus power lines. For USB 3.0, the voltage supplied by low-powered hub ports is 4.45–5.25 V.[61]
    A unit load is defined as 100 mA in USB 2.0, and 150 mA in USB 3.0. A device may draw a maximum of 5 unit loads (500 mA) from a port in USB 2.0; 6 (900 mA) in USB 3.0. There are two types of devices: low-power and high-power. A low-power device draws at most 1 unit load, with minimum operating voltage of 4.4 V in USB 2.0, and 4 V in USB 3.0. A high-power device draws, at most, the maximum number of unit loads the standard permits. Every device functions initially as low-power — but may request high-power, and get it if available on the providing bus.[62]
    Obviously, WiFi adapter is a high-power device. If it does not have sufficient power, it will start power saving program by reducing speed. Even lower power may interrupt ins basic functions. When I connect another high-power device (HDD or ADC) to the same hub, it should get its 500mA from the hub. Seems that starting at this moment  WiFi receives much less current than it requires and stops working. 
    If something is plugged into USB3 port, and this something does not utilize all energy it requested, WiFi starts working again.
    I would greatly appreciate if somebody repeats my tests using Yoga or Yoga 2 Pro.
    Test:
    Reboot your system, all USB devices disconnected
    Open http://www.speedtest.net site and measure Download connection speed (Speed1)
    Connect external HDD to USB2 (NOT USB3!) port
    Wait until HDD is connected
    Test Download speed once again (Speed2)
    Report results to this blog as Speed1/Speed2 couple of numbers
    Thank you in advance

  • Late 2005 - Airport and Bluetooth - won't work together

    Hi everybody!
    I have a problem with my Powermac G5 (late2005).
    I have the Airport Extreme with Bluetooth 2.0+EDR card installed.
    WLAN and Bluetooth work both if operated separately.
    But when Airport is activated and running and I turn on Bluetooth (and connect for example my Magic Mouse) Airport breaks down. - I loose my connection and can't see any other wireless networks.
    Switching to another Airport channel din't help.
    Does anybody have an idea what to do?
    Thanks a lot!
    Chris

    I just started trying BT.
    I allready had a look at the cabling and read about it, that it doesnt matter how the calbes are connected to the airport card.
    I don't think I can put anything between the antennas.
    The late2005 has the build-in antenna (for Airport and BT)...
    But I will have a look if I can place anything between an I will change the cabling...
    Thanks so far!
    Chris

  • Internal Mic and Bluetooth not working together at the same time

    Okay.. so I've been noticing this happen alot lately. Whenever I have my usb wacom tablet plugged in (which is almost always), there would be no internal mic input and bluetooth would become "not unavailable". Also, even when I try an external mic, there was no input. Could this be a coincidence or some related usb-bluetooth problem? Could it be my audio input or tablet driver problem?
    I've used my mic to skype before I had installed the tablet. Also before I used garage band to record my sister's guitar with an external mic, there was no problem at all, and of course I didn't have my tablet plugged in at the time. Recorded a whole hours worth of music, and didn't have any problems.
    Today.. I checked to see if my internal mic was working before I launched skype, and it was working perfectly, and I also noticed my bluetooth was available (didn't test it though). Then I went on skype talked to friend for about 20min, and suddenly the audio stop working. I had my tablet plugged in from earlier today. I restarted my macbook (with no tablet plugged in) and still mic input isn't working. I tried and external mic, but still nothing. I tried uninstalling skype, still nothing.
    This is not the first time this happened, I noticed it would somehow fix itself after a few days every time, and mic and bluetooth would start working again out of nowhere. Which makes it even more weird.
    Need help pleaseee!
    PS. I tried getting someone to fix it before(a few months ago- I don't really use my mic or bluetooth much), but when I brought it in and started up my mac, at that time it was working again. But now it isn't working =(

    UPDATE: I just noticed my bluetooth was no longer "unavailable", so I quickly went into system preferences, and noticed that my internal mic input had some input! Very weak though, only 1-2 bars. So what does this mean?

  • How can I tether via USB my iPhone 4S with iOS 7.1.1 to my MacBook with Snow Leopard 10.6.8 and iTunes 11.2.2 ?? Please note that at the same time Personal Hotspot via both WiFi and Bluetooth works perfectly!

    How can I tether via USB my iPhone 4S with iOS 7.1.1 to my MacBook with Snow Leopard 10.6.8 and iTunes 11.2.2 ?? Please note that at the same time Personal Hotspot via both WiFi and Bluetooth works perfectly!

    Hello, lustige luka. 
    Thank you for visiting Apple Support Communities. 
    The Personal Hotspot feature using USB  should be as simple as connecting the device to your Mac via the USB cable when Hotspot is enabled.  Here is some more information regarding this feature and an article that will provide some troubleshooting steps if you are experiencing an issue. 
    iOS: Understanding Personal Hotspot
    http://support.apple.com/kb/ht4517
    iOS: Troubleshooting Personal Hotspot
    http://support.apple.com/kb/TS2756
    Cheers,
    Jason H. 

Maybe you are looking for