0
當相機加載時,我只想打開相機的特定區域。不需要全屏打開。 安卓相機的屏幕尺寸
在這裏,黑色區域只顯示相機視圖。我該如何做到這一點?
我寫了這樣的代碼..
public class CameraActivity extends Activity{
private static final int CAMERA_PIC_REQUEST = 15;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
getParent().getParent().setTitle("Image Capture");
startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST);
onActivityResult(15, 0, cameraIntent);
}
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == CAMERA_PIC_REQUEST) {
}
}
請人幫助我從這個問題。
在此先感謝..
這裏是[相機API演示(HTTP:// marakana.com/forums/android/examples/39.html) – 2012-04-10 11:33:47