Hi
how can i get lis of phone JSR support on application ? is it possible ?
for example it`s support JSR-82 or not ?
thanks

Dani AI

Generated

Two practical ways exist to determine JSR support for a running MIDlet: detect it at runtime inside the application, or map the device to a capability database before/during download. pointed toward the latter; that can work for server-side tailoring but is only as accurate as the database and can be wrong for different firmware/region builds. The phone-model list posted by is not a reliable method by itself.

A common, pragmatic runtime check is to try to load a representative API class and catch any failure. This avoids static references that can break class loading on devices that lack the optional package:

try {
    Class.forName("javax.bluetooth.LocalDevice"); // JSR-82 example
    // JSR present
} catch (Throwable t) {
    // JSR not present
}

When an API is present, guard every use with try/catch. To avoid compile-time linking issues, keep code that touches the optional API in a separate class and load/invoke it only after the positive check (or use reflection to call methods). If the build needs to support many combinations, consider shipping alternate suites or delivering device-specific builds.

Server-side capability lookup is useful for packaging or tailoring downloads, but runtime verification remains essential as a fallback. For reference on the Bluetooth optional package, see the JSR-82 specification: JSR 82 - Bluetooth API. Testing on real devices and multiple firmware versions is critical because model names alone do not guarantee the same JSR set across all units.

Recommended Answers

All 3 Replies

You would need use WURFL that in scenario that device is connecting to a server.

I know Some Phone Which are Supported JSR.In the Nokia N80,N70,N95,N73 Etc. This Much of Model Support the JSR and In the Sony Ericson's K750,K800,W810 Etc.This Much of Model OF Sony Which Support the JSR application.

do not post for sake of showing of your signature link. Your post is absolute rubbish and does not solve this issue. Plus makes it plain obvious you have no background in software development and by looking on other posts would say you are just general pc user...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.