I am trying to open the camera from my app, however as there are other apps installed, such as candy
and retrica
, phone asks which one to open. However, I want to open the default camera, by default in every devices. Any solution? Here is my code:
public void cameraFuture(View view)
{
Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, 0);
}
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
// TODO Auto-generated method stub
super.onActivityResult(requestCode, resultCode, data);
ImageView iv = (ImageView)findViewById(R.id.camTemp);
Bitmap bp = (Bitmap) data.getExtras().get("data");
iv.setImageBitmap(bp);
}