Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Testing for Optional Packages  RSS feed

 
Ranch Hand
Posts: 296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to test what optional J2ME packages are installed on a device at runtime?

For example, say I want to use JSR-75, but I'm not sure if the device has that API. Perhaps it's an optional install for the end user, etc.

What's the best way to test for this? Class.forName?

Thanks,

Drew
 
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think there is a way to do it at run-time, but you can try and use the pre-processor capabilities of J2MEPolish.

Check this link:

support an API
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think this site might help you.
http://www.benhui.net/modules.php?name=Midp2Phones.

This site contains all the MIDP Phones and also which Optional Packages they support as well as the CLDC and MIDP versions which those devices support.

Hope that Helps,
Chaitanya V
 
Drew Lane
Ranch Hand
Posts: 296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I ended up just catching the Class Not Found error.

Apparently, you can also check for a System property:

What are the defined J2ME system property names?

Drew
 
Roy Ben Ami
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cool.

Thanks for the link, I didn't know that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!