How to check whether the phone supports camera from Java ME
This can be retrieved by
Gives whether camera is supported or not
You can also check if the Manager.createPlayer() method call returns MediaException. This means that the specific locator is not supported.
(Note: You should have the createPlayer() call inside a try-clause anyway)