안녕하세요.

 

카메라 프리뷰를 넣었습니다.

 

        mPreview = new Preview(this);

        LayoutInflater inflater = getLayoutInflater();
        RelativeLayout rl = (RelativeLayout)inflater.inflate(R.layout.main, null);
       
        getPictureButton = (Button)rl.findViewById(R.id.cameraButton);
        getPictureButton.setOnClickListener(mClickListener);
        txtData = (TextView)rl.findViewById(R.id.txtdata);
        edtData = (EditText)rl.findViewById(R.id.edtdata);
        sv = (ScrollView)rl.findViewById(R.id.scrollView1);
       
        StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
        StrictMode.setThreadPolicy(policy);
       
        FrameLayout fl = new FrameLayout(this);
        fl.addView(mPreview, 320, 480);
        fl.addView(rl);
       
        setContentView(fl);

 

이런 식으로 했습니다.

 

실행하면 동작 잘 됩니다. 헌데 제가 원하는거는

핸드폰을 수직으로 들어서 보는 건데

화면이 자동으로 수평으로 변하고, 위에 상태바 같은것도 없어집니다. ㅠㅠ

초보라 예제를 이것 저것 뜯어 보고 있지만 감이 안 잡히네요 ㅠㅠ

 

원하는 거는 화면 방향을 돌리지 않고 처음 실행할 때 처럼 수직형태로 있는겁니다...

꼭 가르쳐주세요 감사합니다.