Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / May 2005

Tip: Looking for answers? Try searching our database.

MIDP 1.0.3 support Mobile Media APIs

Thread view: 
arraxen - 28 May 2005 12:11 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. 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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.