Photo picker intent:
Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
photoPickerIntent.setType("image/*");
startActivityForResult(photoPickerIntent, SELECT_PHOTO);
The text, shown below, currently says "Complete action using Photos". Is there a way to change this to something custom?
It's simple. The answer is No. Also in won't always be "with Photos", it will depend on most used(or recent) app for this kind of Action.
You can use some other way of doing this.
Intent.createChooser(yourIntent, "Open via ..." /*your text goes here*/)
This will look differently, but will have your text
Use like this
this.startActivity(Intent.createChooser(emailIntent, "Send mail via ..."));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.