简体   繁体   中英

How to get app versionname for android with delphi XE7?

I found one answer for delphi XE5 here but it doesn't work with XE7.

For instance is SharedActivity unknown. Anyone who know how to do this?

Thanks.

You need to change the uses a little from the answer that you link to. I think that instead of:

uses
  Androidapi.JNI.JavaTypes,
  FMX.Helpers.Android,
  Androidapi.JNI.GraphicsContentViewText;

the code will work with:

uses
  Androidapi.JNI.JavaTypes,
  Androidapi.Helpers, 
  Androidapi.JNI.App,
  Androidapi.JNI.GraphicsContentViewText;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM