Mobile Media API question

Hi all,

I’m fairly new to J2ME and had a question…

I want to write an MIDP 2.0 app that allows the user to take a picture from within the application - is it straightforward to use the Mobile Media API (JSR 135) API to access the built-in camera on Java phones in order to take a picture?

Assuming it is, would it be safe to assume that such an application could use the camera on any phone that supports this API?

If anyone has done anything along these lines I’d be interested to hear about it.

Regards
Dud

Hi,

Check out the Camera MIDlet tutorial example at Forum Nokia - it does just what you’re asking. It’s fairly straightforward to use.

The MMAPI has many optional parts, and one of those is the camera support. Don’t assume that a phone that has a camera and implements the MMAPI will necessarily support the camera part of the MMAPI. In Nokia phones, the Series 40 phones do not support the camera part (if they support MMAPI, it is just for playing audio), but the Series 60 phones (except the original 7650) do support the camera part of the MMAPI. Even in Series 60, only the most recent phones support the camera’s full resolution via the MMAPI (7610 onwards, I think, but I’m not sure).

I’m afraid I’m not familiar with the other manufacturers’ phones :(.