How to find the supported media content types from Java ME
Article Metadata
The following code helps to to find out which all formats of media are supported in your phone
String[] contentTypes = Manager.getSupportedContentTypes(null)
The following code helps to to find out which all formats of media are supported in your phone
String[] contentTypes = Manager.getSupportedContentTypes(null)
Level:Basic
This article is just an answer to find how many types of media are supported on your Phone. Knowing this thing in advanced help developers putting only required media types within application and from external resources.
String[] contentTypes = Manager.getSupportedContentTypes(null);Given line of code is a array of string in which all supported types will be stored and one can access all supported items in particular string intended for particular type.
This article is helpful when one is going to create Multimedia application or wants to provide support from Internet. One can check and give indication to the user of Unsupported Media types.
--kalki 18:41, 26 September 2009 (UTC)