Get the current version of android qt project

86 views
Skip to first unread message

alejandro garcés

unread,
Nov 12, 2012, 6:13:21 AM11/12/12
to andro...@googlegroups.com

Hello people.

The question is simple, is there any way to get the current version of Qt Necessitas  project ? 

I tried with QApplication :: ApplicationVersion (), but without success. 

I need the current version installed on the device, and compare it with the newer version and make the decision to update the application or not.

Any suggestions will be appreciated. 

Greetings!

Nilson Aguiar

unread,
Nov 12, 2012, 6:27:19 AM11/12/12
to andro...@googlegroups.com
Hey guys,

 I've got some information missing that i need,  I don't found a way to get the android version like "Android-8" and build version string too.

Best Regards,
Nilson Aguair




Att,
Nilson Aguiar



2012/11/12 alejandro garcés <garces...@gmail.com>

angelus

unread,
Nov 12, 2012, 8:36:19 PM11/12/12
to andro...@googlegroups.com
I also encountered the same problem, can only create the file is written to the version number, there are better ways to obtain the version number in the xml thing?

Chris Konstad

unread,
Dec 16, 2012, 3:35:26 PM12/16/12
to andro...@googlegroups.com
I would also like to be able to read the version name, but (as you said) QApplication::ApplicationVersion() does not work.  

Is there some way to read the AndroidManifest.xml file during compilation to read the version name that is in there?  Or could we use the *.pro file to change the version name in the AndroidManifest.xml?  Or, when the Projects->Run->Package configurations->Version name is set, could that be used to define the application version in the *.pro file?

Chris
Reply all
Reply to author
Forward
0 new messages