I displayed images from webservice using json. Now how to provide user to make image as profile picture for whatsapp or contact photo etc., How to call that intent to open set picture as -> Set as -> showing multiple options -> Contact photo wallpaper, whatsapp profile photo etc.,?
Intent intent = new Intent(Intent.ACTION_ATTACH_DATA);
intent.setDataAndType(Uri.parse(filename.getAbsolutePath()), "image/*");
intent.putExtra("jpg", "image/*");
startActivity(Intent.createChooser(intent, ("set as")));
use this code.