I am developing with apache cordova and I need to create a button that allows me to access the Gallery app. With android studio I did it with the following block of code
@Override
public void onClick(View view) {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("content://media/internal/images/media"));
startActivity(intent);
}
Is there a way to do it with Apache Cordova, is there a similar one?
Investigating I found the plugin
com-darryncampbell-cordova-plugin-intent
installing with cordova and adding