我需要模拟诺基亚默认相机 midlet 的行为。
它适用于诺基亚 C6,我正在用 J2ME 编写它。
我使用 MMAPI,问题是 VideoControl 项目的大小,我做到了,videoControl.setDisplayFulscreen(true);但它根本不是全屏,setDisplaySize 方法没有帮助,videoControl 本身的大小大约是显示的三分之一(所需的其余部分displaySize 只是黑色),这是一个代码示例:
public CameraCanvas (Evidence_elektromeru midlet, ManagePhotos caller,String name) { 
    super(true);
    this.midlet = midlet;
    this.caller = caller;
    this.name = name;
    this.setFullScreenMode(true);
    try {
        player = Manager.createPlayer("capture://devcam0");
        player.realize();
      //  player.prefetch();
        if (videoControl2 != null) 
                videoControl2.setVisible(false);
        videoControl1 = (VideoControl) player.getControl("VideoControl");
        videoControl1.initDisplayMode(VideoControl.USE_DIRECT_VIDEO,this);
        videoControl1.setDisplayLocation(0, 0);
        videoControl1.setDisplaySize(360,500);
        }catch (MediaException me2) {
            try {
                videoControl1.setDisplayFullScreen(true);
            } catch (Exception e) {}
             }
    catch (Exception e) {}
    finally {
               try {
              player.start();
               } catch (Exception e) {}
              videoControl1.setVisible(true); 
        }