Greeting every one!
I have recently created an app via app inventyor and have faced a problem to publish that.
I am going to publish this app in a local platform ( something same as google play) this publisher persist to remove the:
"<uses-permission android:name="android.permission.CAMERA"/>"
the camera recall in my app after pushing a key and they justify since the user will push this key intently the camera permission must not be shown.
they have suggested the following code to be written in JAVA for this porpose but I do not know how I should generalize that to MIT App Inventor.
thank you in advance for your helps.
Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(cameraIntent, CAMERA_REQUEST);
@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == CAMERA_REQUEST && resultCode == Activity.RESULT_OK) {
Uri imageUri = data.getData();
if(imageUri != null) {
// do something with image
}
}
}