In android there is 2 well known methods for getting images using android's default intents.
Gallery intent
To pick image from gallery, we usually do this:
Intent intent =new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(intent, 1);
Camera Intent
To open camera and capture image, we usually do this:
Intent intent=new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, 2);
And finally we get the result in onActivityResult callback.
Question
I noticed that some chat apps (well-known ones) use a custom gallery picker, and a custom camera capture method.
They don't use android's default methods, which seems to be the easier way.
So my question is, does all android devices (mainly android 4 and above) support the above 2 methods or not?
I need to make sure that the above methods are supported by all devices.
Thanks.