Reputation: 873
i want to open camera in my android app and want to use paranomic effect of default mobile camera in my app how can we do this in android.
Upvotes: 1
Views: 1208
Reputation: 1006584
i want to open camera in my android app
Use one of the following Intent
actions, all defined on MediaStore
:
ACTION_IMAGE_CAPTURE
ACTION_IMAGE_CAPTURE_SECURE
ACTION_VIDEO_CAPTURE
INTENT_ACTION_STILL_IMAGE_CAMERA
INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE
INTENT_ACTION_VIDEO_CAMERA
and want to use paranomic effect of default mobile camera
There are ~2 billion Android devices, spread over thousands of device models. There are hundreds of different pre-installed camera apps, and hundreds more that the user can install from the Play Store or other distribution channels. Your Intent
might open any of them.
None have to offer any sort of "paranomic effect".
Upvotes: 1
Reputation: 735
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
File photo = new File(Environment.getExternalStorageDirectory(), "filename.jpg");
intent.putExtra(MediaStore.EXTRA_OUTPUT,
Uri.fromFile(photo));
imageUri = Uri.fromFile(photo);
startActivityForResult(intent, TAKE_PICTURE);
Upvotes: 0