How to access mobile camera and address book using j2me?

I m using sun java wireless toolkit 2.5 beta and jdk1.5how can i access my mobile camera using j2me ?please give some example codes and links .....reply as soon as possible.!!!!
[205 byte] By [bronze-starDukes] at [2007-11-26 12:14:38]
# 1

Try this. Hope it help

try

{

Player m_player;

m_player = Manager.createPlayer("capture://video");

m_player.realize();

m_vc = (VideoControl)m_player.getControl("VideoControl");

m_vc.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);

m_vc.setDisplayLocation(0, 0);

m_vc.setDisplayFullScreen(true);

m_player.start();

m_vc.setVisible(true);

}

catch ( IOException io )

{

}

catch ( MediaException mx)

{

}

Message was edited by:

RiekeyLee

bronzestar at 2007-7-7 14:17:28 > top of Java-index,Archived Forums,Socket Programming...
# 2
PIM api is used to access the address book
bronzestar at 2007-7-7 14:17:28 > top of Java-index,Archived Forums,Socket Programming...
# 3
Thank you for reply.
bronzestar at 2007-7-7 14:17:28 > top of Java-index,Archived Forums,Socket Programming...
# 4
Hello, i used you replayes and iam working verry well with it, but i need to know please if i can control the zooming with the mobile camera, plz if it doable help me with an examble code.Best Regards and thankx
bronzestar at 2007-7-7 14:17:28 > top of Java-index,Archived Forums,Socket Programming...