/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
getWindow().setFormat(PixelFormat.UNKNOWN);
surfaceView = (SurfaceView)findViewById(R.id.camerapreview);
surfaceHolder = surfaceView.getHolder();
surfaceHolder.addCallback(this);
surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
controlInflater = LayoutInflater.from(getBaseContext());
View viewControl = controlInflater.inflate(R.layout.control, null);
LayoutParams layoutParamsControl
= new LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.FILL_PARENT);
this.addContentView(viewControl, layoutParamsControl);
}
이구요 이 버튼을 누르면...
subactivity라는 액티비티로 화면을 전환하려 합니다.....
어떻게... 해야할지 문의를 드립니다.. 도와주세요...
Intent intent = new Intent(main.this, subactivity.class);
startActivity(intent);
온클릭리스너 등록하시고 프리뷰 버튼 눌렸을때 인텐트를 통해서 엑티비티 이동시키면 됩니다~!