Bob Fludder
Posts: 0
Joined: Fri Sep 14, 2012 1:09 am

Display version details from App Settings

Under project there are a number of App Settings. Android binary has a couple where you can input the version code & version name. I have a dialog page that displays a version. Is there a way of displaying the version details from the app setting in the dialog or do I have to keep remembering (rather forgetting) to change dialog manually ?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Display version details from App Settings

Hi Bob,

Unfortunatly you can not use information from "android binary" app settings tab.

So you need to implement this logic your self.

I can suggest you two ways:

1 Create new JS asset and fill it with following code:

pre

self.appInfo = {
version: "123.123",
build: "345.345"
};

/pre

Then you can access to this info with following code:

pre

//Get version.
var version = self.appInfo.version;

//Get build.
var build = self.appInfo.build;

/pre

2 Create some collection in your DB. With collumns "fieldName" and "fieldValue" and request this collection when you need info(for example when your dialog page will be displayed).

Regards.

Bob Fludder
Posts: 0
Joined: Fri Sep 14, 2012 1:09 am

Display version details from App Settings

Thanks. Worth a try I guess. Still have to remember to update it... but can put somewhere in the Javascript so I don't miss it as easily.

Return to “Issues”