Hello,
I want to retrieve the device information to know wheter it supports MIDP
1.0 only, MIDP 1.0.3, or MIDP 2.0. I know that we can use
System.getProperty("microedition.profiles"), but the result tells only if
it is MIDP 1.0 or MIDP 2.0, not any information if it is MIDP 1.0.3.
Does anybody know how to retrieve detail information of a device that it
supports MIDP 1.0.3?
With MIDP 1.0.3 we can use the Manager class of Mobile Media APIs to play
sound.
Some devices like Nokia 3660 support MIDP 1.0.3, can use the Manager class
of Mobile Media APIs package to play sound.
Some devices like Nokia 6610 support MIDP 1.0 only, cann't use the Manager
class of Mobile Media APIs package. An error will occur with message says
something like this "cannot create class in package system" and the program
will stop.
So, I think if we can retrieve the MIDP version information, we can decide
in the program to import the Mobile Media APIs package (import
javax.microedition.media.Manager) if the device support MIDP 1.0.3 (of
course or MIDP 2.0), and not to import if the device is only MIDP 1.0, so
we can avoid the error and program will continue to run.
I've tried the "try-catch" structure to handle this error, but it doesn't
work because the error is not an exception.
Or anybody has another method to decide in the program will import Mobile
Media package or not, to avoid the error occurance?
Anybody please give me help. I would appreciate for any reply.
Thanks!
Darryl Pierce - 31 May 2005 01:36 GMT
> Hello,
>
> I want to retrieve the device information to know wheter it supports MIDP
> 1.0 only, MIDP 1.0.3, or MIDP 2.0.
There is no such thing as MIDP 1.0.3. There is MIDP 1.0 and MIDP 2.0.
> I know that we can use
> System.getProperty("microedition.profiles"), but the result tells only if
> it is MIDP 1.0 or MIDP 2.0, not any information if it is MIDP 1.0.3.
That's because 1.0.3 is a version of the Wireless Toolkit. Also, the
above mentioned property is *not* a part of the MIDP 1.0 specification.

Signature
Darryl L. Pierce <mcpierce@gmail.com>
Visit my homepage: http://mcpierce.multiply.com
"By doubting we come to inquiry, through inquiry truth." - Peter Abelard