Jump to content

Juan Felix

Members
  • Content Count

    3
  • Joined

  • Last visited

Everything posted by Juan Felix

  1. Juan Felix

    How to read Stream(Image) from Parcelable?

    I tried to create Androdi App to send from another android app when share Text and Image. function TForm1.HandleIntentAction(const Data: JIntent): Boolean; var Extras: JBundle; begin Result := False; if Data <> nil then begin Memo1.ClearContent; Extras := Data.getExtras; if Extras <> nil then begin Edit1.Text := JStringToString(Extras.getString(TJIntent.JavaClass.EXTRA_SUBJECT)); Memo1.Text := JStringToString(Extras.getString(TJIntent.JavaClass.EXTRA_TEXT)); var datastream := Extras.getParcelable(TJIntent.JavaClass.EXTRA_STREAM); /// /// I don't know how to use the variable datastream above to get the filename, so... i can read it to TBitmap /// Memo3.Text := JStringToString(Extras.toString); /// /// From the code above, I got the text like this: /// /// Bundle[{ /// android.intent.extra.SUBJECT=Ms Glow Jateng - Ms Glow Ultimate Night Cream, /// android.intent.extra.TEXT=Ms Glow Jateng - Ms Glow Ultimate Night Cream /// /// ULTIMATE NIGHT CREAM adalah cream malam yang diperuntukkan bagi tipe jenis kulit yang memiliki flek/bernoda hitam bekas ... /// /// Yuk beli sekarang! /// Harga: Rp85.000 Rp72.250 /// https://berikhtiar.com/juan.249/product/ms-glow-jateng-ms-glow-ultimate-night-cream, /// android.intent.extra.STREAM=content://evermos.evermos.com.evermos.flutter.share_provider/cache/b74a99e1-b56d-49af-b072-e075f392e0ef.png}] /// end; Invalidate; end; end;
  2. Juan Felix

    How to read Stream(Image) from Parcelable?

    Thank you so much for the additional great information.
  3. Juan Felix

    How to read Stream(Image) from Parcelable?

    Thank you so much for the guidance.
×