I'm looking for a way to open the Android gallery application from an intent (not the integrated action from Delphi).
I can open the filepicker from android and reading the result of the intent, but this is unhandy/too complicated for my users:
This works but i don't like it.
Intent := TJIntent.JavaClass.init(TJIntent.JavaClass.ACTION_OPEN_DOCUMENT);
Intent.setType(StringToJString('image/*'));
Intent.putExtra(TJIntent.JavaClass.EXTRA_LOCAL_ONLY, StringToJString('true'));
Intent.putExtra(TJIntent.JavaClass.EXTRA_ALLOW_MULTIPLE, True);
For Java I found the following solution, but I do not know how to use this solution in Delphi:
Intent pickIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
in delphi: Intent := TJIntent.JavaClass.init(TJIntent.JavaClass.init(TJIntent.JavaClass.ACTION_PICK, ?????????);
(Delphi 10.4.1)
Any help would be great.
Thanks