I know that call system camera is
Intent intent = new Intent();
intent.setAction("android.media.action.STILL_IMAGE_CAMERA");
startActivity(intent);
i want display the pictures in the ImageView,but i don’t konw how to do it.
is there anybody can give me a sample code?
edit1:
i also need store
String strPath = Environment.getExternalStorageDirectory().toString();
File path = new File(strPath);
if(!path.exists())
path.mkdirs();
strFileName = "test.jpg";
strFilePath = strPath + "/" + strFileName;
File file = new File(strFilePath);
Uri uri = Uri.fromFile(file);
intent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
i use the up code to store, but how to see in photographic time?that is preview.
You need to use startActivityForResult instead of startActivity, and then grab the result in onActivityResult. Something like this:
}