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.

Launching activities and StrToJURI, error on XE7

Discussion in 'Delphi Android And IOS' started by codeb, Nov 6, 2014.

  1. codeb
    Offline

    codeb DF Member

    I try to make app for reading rss in Delphi XE7. Here is my used units

    uses
    System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,  FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,  FMX.ListView.Types, IdBaseComponent, IdComponent, IdTCPConnection,  IdTCPClient, IdHTTP, FMX.ListView, FMX.StdCtrls, FMX.Header, FMX.Platform.Android,  Androidapi.JNI.GraphicsContentViewText, FMX.Helpers.Android;


    I have this line of code, and show me error messages on blue part of code:

    procedure TForm1.ListView1ItemClick(const Sender: TObject;
      const AItem: TListViewItem);
    var
      Intent : JIntent; // Androidapi.JNI.GraphicsContentViewText
      strURL : String;
    begin
      Intent := TJIntent.Create;
      Intent.setAction(TJIntent.JavaClass.ACTION_VIEW);
      strURL := (AItem.Objects.FindObject('Data4') as TListItemText).Text;
      Intent.setData(StrToJURI( strURL ));
      SharedActivity.startActivity(Intent);
    end;

    How to fix this.
    Thanks!
     
  2. kambiz
    Offline

    kambiz DF Member

    I Don't Have [font='Open Sans', Arial, Tahoma, Verdana, sans-serif]Androidapi [/font]Unit In My XE7 ?[font='Open Sans', Arial, Tahoma, Verdana, sans-serif] [/font]


    Any Body Can Help Me?

    Thanks
     

Share This Page