I’ve run into this issue when trying to fire up a camera intent like so:
String imagePath;
imagePath = Environment.getExternalStorageState() + "/images/myimage.jpg";
File file = new File( imagePath );
Uri outputFileUri = Uri.fromFile( file );
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, REQUEST_CAMERA);
The error I’m getting is:
REQUEST_CAMERA cannot be resolved to a variable
Any help is appreciated!
Regards
Chris
Put any integer you want. This is only useful in the onActivityResult.