os-fileup
os-fileup copied to clipboard
How do I enable only the camera
How do I enable only the camera's photo option, without enabling the file upload option.
Image: https://prnt.sc/nowdli
I'm also looking for this options I tried change
startActivityForResult(chooserIntent, FCR);
to
startActivityForResult(takePictureIntent, FCR);
but it crash
but when I tried
//startActivityForResult(chooserIntent, FCR);
Intent it = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(it, FCR);
it works but resolution is very low.
Anyone found any solution?
Anyone found any solution?
nope I didn't
If you guys are still looking for something, you can try commenting out these:
/*
contentSelectionIntent.addCategory(Intent.CATEGORY_OPENABLE);
contentSelectionIntent.setType(file_type);
if (multiple_files) {
contentSelectionIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);
}
*/
@mgks your solution is not working
any one found the solution?
It worked for me with Ghazi's option.. Are sure it did recompile/redeploy ?
Hi @hugeps who is Ghazi here. I tried about solutions but it is not working. If it is working for you then kindly post the solution
If you guys are still looking for something, you can try commenting out these:
/* contentSelectionIntent.addCategory(Intent.CATEGORY_OPENABLE); contentSelectionIntent.setType(file_type); if (multiple_files) { contentSelectionIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); } */
@itvignes09 he's talking about this solution. once done, try clean build and rebuild. It's working fine in Android Smart WebView