1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Donation with Paypal!!!

    Go to your paypal account and send directly donation to [email protected]

    1 month - 10 $ - Standart VIP

    6 months - 20 $- Standart VIP

    1 year - 30 $- Standart VIP

    2 years - 50 $- Standart VIP

    Gold member for life - 150 $- Standart VIP

    High Vip (Standart VIP include) group please send PM or email to [email protected] for info

    After Donation please send email to [email protected]

  3. Donation Ways 2020


    Paysend
  4. Telegram
Dismiss Notice

Donation with Paypal!!!

Go to your paypal account and send directly donation to [email protected]

1 month - 10 $ - Standart VIP

6 months - 20 $- Standart VIP

1 year - 30 $- Standart VIP

2 years - 50 $- Standart VIP

Gold member for life - 150 $- Standart VIP

High Vip (Standart VIP include) group please send PM or email to [email protected] for info

After Donation please send email to [email protected]

Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

Delphi XE6 - Intent Api

Discussion in 'Delphi Tools,Freeware, Open Source' started by AdminDF, Sep 29, 2014.

  1. AdminDF
    Online

    AdminDFAdminDF is a Verified Member Delphifan Staff Member DF Staff

    [youtube]tLWN039HDeM[/youtube]

    OPEN URL


    Code:
    uses     FMX.Helpers.Android,     Androidapi.Helpers,     Androidapi.JNI.GraphicsContentViewText;     procedure TMain.OpenURLClick(Sender: TObject);     var       Intent: JIntent;     begin       Intent := TJIntent.Create;       Intent.setAction(TJIntent.JavaClass.ACTION_VIEW);       Intent.setData(StrToJURI('http://www.delphifan.com'));       SharedActivity.startActivity(Intent);     end;


    OPEN FILE


    Code:
       uses     System.IOUtils,     FMX.Helpers.Android,     Androidapi.Helpers,     Androidapi.JNI.GraphicsContentViewText;     procedure TMain.OpenFİleClick(Sender: TObject);     var       Intent: JIntent;     begin       Intent := TJIntent.Create;       Intent.setAction(TJIntent.JavaClass.ACTION_VIEW);       Intent.setDataAndType(StrToJURI('file:' + TPath.Combine(TPath.GetSharedDownloadsPath, 'picture.png')), StringToJString('image/png'));       SharedActivity.startActivity(Intent);     end;

    SEND FILE


    Code:
        uses     System.IOUtils,     FMX.Helpers.Android,     Androidapi.Helpers,     Androidapi.JNI.GraphicsContentViewText;     procedure TMain.SendFileClick(Sender: TObject);     var       Intent: JIntent;     begin       Intent := TJIntent.Create;       Intent.setAction(TJIntent.JavaClass.ACTION_SEND);       Intent.setDataAndType(StrToJURI('file:' + TPath.Combine(TPath.GetSharedDownloadsPath, 'picture.png')), StringToJString('image/png'));       SharedActivity.startActivity(Intent);     end;
     
  2. realist
    Online

    realistrealist is a Verified Member Administrator General Staff Member DF Staff

    RE:

    Thanks
     
  3. chrpaz
    Online

    chrpaz Guest

    thanks
     
  4. cid
    Offline

    cid DF Junior

    thankssssssssssssss
     
  5. danil031997@gmail.com
    Offline

    [email protected] DF Member

    [font=Arial, sans-serif]how to pass[/font] [font=Arial, sans-serif]through[/font] [font=Arial, sans-serif]intent[/font] [font=Arial, sans-serif]text+[/font][font=Arial, sans-serif]image[/font][font=Arial, sans-serif]? c:[/font]
     

Share This Page