Lars Ljungberg
Lars Ljungberg

Reputation: 313

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.

Upvotes: 0

Views: 1151

Answers (1)

David Heffernan
David Heffernan

Reputation: 612964

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;

Upvotes: 1

Related Questions