Page 1 of 1

how to get version no?

Posted: Sat Jul 26, 2014 3:51 pm
by B510

Dear All,

How to get version no of the app? ..I need to add such info into my About dialog..

could anybody please advise?

thanks a lot in advance

Regards


how to get version no?

Posted: Sat Jul 26, 2014 6:30 pm
by obullei

Hello!

Could you explain your issue more clear?


how to get version no?

Posted: Sat Jul 26, 2014 11:42 pm
by B510

I have About page that showa the version info of the apps.. how do I get it?.. as far as I know the version no changed everytime we rebuilt .. cmiiw... thanks


how to get version no?

Posted: Mon Jul 28, 2014 12:52 am
by Yurii Orishchuk

Hi B510,

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.