Categories: Known Issue | Java ME | MIDP 2.0 | S60 3rd Edition | S60 3rd Edition, Feature Pack 1 | Connectivity | Bluetooth API (JSR-82)
This page was last modified 11:35, 4 March 2008.
KIJ000812 - LocalDevice.isPowerOn() missing from S60 3rd Ed and S60 3rd Ed FP1 (or older) devices
From Forum Nokia Wiki
This known issue was originally created by Alanbur and has been verified by Forum Nokia.
| ID | KIJ000812 | Creation date | February 7, 2008 |
| Platform | S60 3rd Edition, S60 3rd Edition, FP1 | Devices | Nokia E70 |
| Category | Java ME | Subcategory | MIDP 2.0 |
Overview
The LocalDevice.isPowerOn() method is missing from the Bluetooth API (JSR-82) implementation in S60 3rd Edition and S60 3rd Edition, FP1 devices.
Description
The LocalDevice.isPowerOn() method is part of JSR-82. The method is, however, missing from the API implementations in S60 3rd Edition and S60 3rd Edition, FP1 devices. This method was added in the maintenance release of the API, BT API 1.1.
How to reproduce
Use LocalDevice.isPowerOn() in your code:
try {
LocalDevice ld = LocalDevice.getLocalDevice();
boolean power = ld.isPowerOn();
} catch (BluetoothStateException ex) {
ex.printStackTrace();
}
This will throw a java.lang.Error.
Solution
In devices compliant with the MSA Subset (JSR-248), that is S60 3rd Edition FP2 and newer devices, the version of the Bluetooth API can be queried by using the system property "bluetooth.api.version". Version 1.1 of the Bluetooth API is implemented in S60 3rd Edition, FP2 devices. Do not use the isPowerOn() method in older devices and if you do not get the API version "1.1" by using the system property. Also note also that Bluetooth API 1.1 is implemented in Series 40 5th Edition devices (and newer).
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| S60 3rd Edition Device and Heap limitation! | khurshed79 | General Symbian C++ | 6 | 2006-06-29 10:51 |
| S60 3rd Edition FP1 failed to initialize session | sanjangr | Mobile Java Tools & SDKs | 15 | 2008-03-28 13:45 |
| Scheduled SMS does not work in S60 3rd FP1 | learning_symbian | Symbian Networking & Messaging | 6 | 2008-02-04 20:15 |
| oma drm 2.0 phones | afisher | Digital Rights Management & Content Downloading | 2 | 2007-07-31 17:20 |
| Setting an APN from J2ME | ofer_razon | Mobile Java Networking & Messaging & Security | 13 | 2008-03-20 13:44 |

