Jump to content

iken

Members
  • Content Count

    1
  • Joined

  • Last visited

Everything posted by iken

  1. Open the photo album in TForm1.imagesClick: var Intent: JIntent; begin Intent := TJIntent.Create; Intent.setAction(TJIntent.JavaClass.ACTION_PICK); Intent.setType(StringToJString('image/*')); TAndroidHelper.Activity.getPackageManager.resolveActivity(Intent, 0); TAndroidHelper.Activity.startActivityForResult(Intent, 0, nil); end It also defines TForm1.onActivityResult(RequestCode, ResultCode: Integer; Data: JIntent); to reading the result of the intent. But as a result, I can open the photo album and select the picture, but onActivityResult is not run after selecting the picture.
×