mCameraBtn = getView("btm_btn_base").
getChild("btm_btn_camera_base").getChild("btm_btn_camera_di");
Button btnCamera = (Button)mCameraBtn.getView();
btnCamera.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
try {
// TODO PHASE2 実装
// MessageBox.showWithListenter(A_Controller.this,CycleConstants.TITLE_NOTIFY,
// CycleConstants.MSG_NOT_SUPPORTED, MessageBox.MSG_TYPE.OK, null);
Intent intent = new Intent();
intent.setAction(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, mImageUri);
File photoDir = new File(Native.getInstance().getAppDir() + "/photo");
photoDir.mkdir();
Calendar cal = Calendar.getInstance();
mTmpImageFile = new File(Native.getInstance().getAppDir() +
"/photo" + "/CY_" + String.format("%04d%02d%02d%02d%02d%02d.jpg",
cal.get(Calendar.YEAR),
cal.get(Calendar.MONTH) + 1,
cal.get(Calendar.DAY_OF_MONTH),
cal.get(Calendar.HOUR_OF_DAY),
cal.get(Calendar.MINUTE),
cal.get(Calendar.SECOND)
));
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(mTmpImageFile));
startActivityForResult(intent, REQUEST_INTENT_TYPE.CAMERA.ordinal());
_getCurViewIntarface().btnCamera();
} catch (Exception e) {
CycleException.traceException(e);
MessageBox.showAppEndCauseError(A_Controller.this, CycleException.getErrorCode(e));
}
}