| Reply | « Previous Thread | Next Thread » |
|
Hello, I have big problem with my JAVA code on real 6230 phone. My code looks:
LocalDevice localdevice = LocalDevice.getLocalDevice(); discoveryAgent = localdevice.getDiscoveryAgent(); Here I am getting NullPointerException and I can't use JSR 82 on this mobile. I have also real N6600 and on this mobile, everything is working perfectly. Can someone help me??? |
|
Hello,
Nokia 6230 does not have JSR-82 support. Whereas Nokia 6600 does have the support. Hence the case. regards, Ajith |
|
Nokia 6230 DOES support JSR-82. Have you looked at the existing Bluetooth examples?
The following two documents both include a Java MIDP example: -Introduction to Developing Networked MIDlets using Bluetooth -Games over Bluetooth: Recommendations to Games Developers You can download these pakcages from the Bluetooth -> Documents section at Forum Nokia: http://www.forum.nokia.com/main/1,65...3_40,00.html#2 Seppo Forum Nokia |
|
I looked there, I try to install the sample application - bluetooth chat on 6230, but it's the same as in my program - NullPointerException, on 6600 it's working well. I don't understand why...
|
|
Nokia 6230 DOES support JSR-82
(http://www.forum.nokia.com/main/0,,0...tml?model=6230) Maybe you have an old frimware version on your phone. I had similar problem with the bluetooth implemenrtation on old friware version. |
|
That's interesting, so I need to update firmware? I was looking to Nokia Website, but I didn't found any information, where to download the new firmware. On internet I found something, but I think, it's quite risky to install not official firmware, can you post, how to download and install the new firmware?
(Maybe my question is stupid, but on Nokia site, I really found nothing.) |
|
I had this problem too. Easily solved by turning on Bluetooth (Menu->settings->connectivity->bluetooth).
Do this and then run your Midlet. Andy |
|
I have the same problem, but i didn't test it with a 6600 because I haven't one. If you know what's the solution, please: bombas666@gmail.com
|
| b0mBaS^666^ |
| View Public Profile |
| Find all posts by b0mBaS^666^ |
|
This is my code and it works on a 6230i bought in 2005.
------------------------------------------------------- // jsr082 API import javax.bluetooth.BluetoothStateException; import javax.bluetooth.DataElement; import javax.bluetooth.DeviceClass; import javax.bluetooth.DiscoveryAgent; import javax.bluetooth.DiscoveryListener; import javax.bluetooth.LocalDevice; import javax.bluetooth.RemoteDevice; import javax.bluetooth.ServiceRecord; import javax.bluetooth.UUID; LocalDevice local=null; DiscoveryAgent agent=null; Vector deviceVector = null; try { local = LocalDevice.getLocalDevice();try { agent = local.getDiscoveryAgent(); } catch (Exception e) {deviceVector = new Vector(); RemoteDevice[] devices = agent.retrieveDevices(DiscoveryAgent.PREKNOWN); if (devices == null) { devices = agent.retrieveDevices(DiscoveryAgent.CACHED); } ----------------------------------------------------------- The code to Display Alert is off topic. My main addition I found is exception trapping. Which seems to work. Are you 6230 with the 'i' in which case early bluetooth device need a firmware upgrade. Jim |
| jimgilmour1 |
| View Public Profile |
| Find all posts by jimgilmour1 |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|