New Ministro version and new features, help needed to test it

460 views
Skip to first unread message

BogDan Vatra

unread,
Mar 24, 2013, 1:52:36 PM3/24/13
to android-qt, Necessitas
Hello folks,

I have good news about Qt and Ministro. As you may already know,
Necessitas (me and Ray) and Qt Project/Digia joined our forces to port
Qt5 on Android. This is the main reason for why I didn't had time to
update Necessitas anymore, but after we'll ship Qt 5.1 I promise you
that we'll do an update for necessitas with the most annoying issues
fixed. If at the beginning I was a little bit skeptical about Qt5
completeness, now I can tell that it is at least as good as Qt4, so I
think it worth at least try it when it will be out.
To support Qt5, I had to do a few changes to Ministro, because I
wanted to give you folks a little more than just Qt5 support, I added
a new feature which I hope will make Ministro even more appealing. Is
about the possibility to add any sources for any libraries you want
Ministro to download from. To use this new feature you need to change
your java part similar with this patch:
https://codereview.qt-project.org/#change,51821 . I'd like to tell you
a little bit more about the how it will works. Let's say that an
application has two sources: s1, and s2, s1 has 3 libs (l1,l2 and l3)
and s2 has 2 libs (l3 and l4) as you can see l3 is in both
repositories. Ministro downloads each source intro its own folder, so
s1 will be downloaded in /ministro/home/folder/dl/01/... and s2 will
go in /ministro/home/folder/dl/02/... so l3 will NOT be overwritten on
disk! What happens if the application needs l3 library? Which one
Ministro will choose? Ministro will always choose the one from the
last source, so is extremely important to pass the sources in the
right order, so in this case it will choose l3 from s2. What happens
if another application uses only s1 and it needs l3? Of course l3 will
come from s1. Using this feature an application can "overwrite" one
(or more) libs from official Qt sourse, but still use the rest of
them.
In order to create a source for Ministro you can use
"ministrorepogen" tool from this
https://projects.kde.org/projects/playground/mobile/necessitas/necessitas-tools/repository
repository. Sadly I didn't had enough time to write any documentation
but here https://projects.kde.org/projects/playground/mobile/necessitas/necessitas-tools/repository/revisions/master/entry/build_sdk.sh#L1899
you can see how we are using it to build a source for Necessitas.

The new Ministro can be downloaded from:
http://files.kde.org/necessitas/installer/release/Ministro II v9.1.apk
.

How to test and what to test: Ministro *MUST* be back compatible,
so, first thing you should test is if your application still works
with the new version. Please try different scenarios: e.g. install the
new Ministro on top of the existing one, in this case the new Ministro
should migrate the old Qt installation and it should NOT download any
libraries and of course, your application should just work. Also try a
fresh installation of the new version.

Please report any problems on this thread.

If no one reports *NO* bug(s)/regression(s) in two weeks, I'l update
it on all android markets ( Google Play, Amazon, Samsung), otherwise
the two weeks period will be extended until Ministro will be
bugs/regressions free.

Ministro 9.x full change log :
- Ministro supports multiple sources, the application can set the
sources of its libraries.
- The application can set the repository.
- Ministro recheck the sha1 sum of all downloaded files if it was
not shutdown correctly.

Cheers,
BogDan.

Filip Brcic

unread,
Mar 24, 2013, 4:17:44 PM3/24/13
to andro...@googlegroups.com, taipan...@gmail.com, Necessitas
On Sun, 24 Mar 2013 19:52:36 +0200
BogDan Vatra <taipan...@gmail.com> wrote:
> Ministro to download from. To use this new feature you need to change
> your java part similar with this patch:
> https://codereview.qt-project.org/#change,51821 . I'd like to tell you
> a little bit more about the how it will works. Let's say that an

This is excellent news, good work BogDan & Ray :)

If I understand correctly, we'd have to specify the sources in the
SOURCES[] array in QtActivity.java? It would be nicer if we could read
them from the res/values/libs.xml (or sources.xml) file, I believe.
I'll see if I can figure out how to make that happen.

Nevertheless, this will allow us to make custom repos with either
custom-patched Qt or additional libs, Qt-related or not (some people
like to bundle postgresql support, for example).

Btw, I tested the new ministro on my Samsung Galaxy SII with
CyanogenMod 4.2.x and it works nicely (ie. nothing was downloaded and
apps still work). I'll test it tomorrow with Qt5 once I figure out how
to make a custom repo on dropbox or something similar.

Cheers,
Brcha
signature.asc

BogDan

unread,
Mar 25, 2013, 2:45:33 AM3/25/13
to android-qt
Hi,

> > Ministro to download from. To use this new feature you need to change
> > your java part similar with this patch:
> >https://codereview.qt-project.org/#change,51821. I'd like to tell you
> > a little bit more about the how it will works. Let's say that an
>
> This is excellent news, good work BogDan & Ray :)
>
> If I understand correctly, we'd have to specify the sources in the
> SOURCES[] array in QtActivity.java? It would be nicer if we could read
> them from the res/values/libs.xml (or sources.xml) file, I believe.
> I'll see if I can figure out how to make that happen.
>

Yup, I think it will be nicer, I'll think about it, thanks for the
tip.
I'll try by tomorrow to update the patch on gerrit.

>
> Nevertheless, this will allow us to make custom repos with either
> custom-patched Qt or additional libs, Qt-related or not (some people
> like to bundle postgresql support, for example).
>
> Btw, I tested the new ministro on my Samsung Galaxy SII with
> CyanogenMod 4.2.x and it works nicely (ie. nothing was downloaded and
> apps still work). I'll test it tomorrow with Qt5 once I figure out how
> to make a custom repo on dropbox or something similar.
>
>
> Cheers,
> Brcha
>

Cheers,
BogDan.

Filip Brcic

unread,
Mar 25, 2013, 1:28:48 PM3/25/13
to andro...@googlegroups.com, taipan...@gmail.com
On Sun, 24 Mar 2013 23:45:33 -0700 (PDT)
BogDan <taipan...@gmail.com> wrote:

> > If I understand correctly, we'd have to specify the sources in the
> > SOURCES[] array in QtActivity.java? It would be nicer if we could
> > read them from the res/values/libs.xml (or sources.xml) file, I
> > believe. I'll see if I can figure out how to make that happen.
> >
>
> Yup, I think it will be nicer, I'll think about it, thanks for the
> tip.
> I'll try by tomorrow to update the patch on gerrit.

I attached the patch for QtActivity.java that should, at least in my
mind, add support for sources_resource_id. I hope that's all that needs
to be done.

Cheers,
Brcha
sources_resource_id.patch
signature.asc

BogDan Vatra

unread,
Mar 26, 2013, 1:19:04 AM3/26/13
to andro...@googlegroups.com

Hi,

I updated the patch on gerrit last night, please take a look.

BogDan.

Filip Brcic

unread,
Mar 26, 2013, 4:46:48 PM3/26/13
to andro...@googlegroups.com, taipan...@gmail.com
On Tue, 26 Mar 2013 07:19:04 +0200
BogDan Vatra <taipan...@gmail.com> wrote:

> Hi,
>
> I updated the patch on gerrit last night, please take a look.
>
> BogDan.

Sorry for not answering before, I was a bit busy today. The new patch
looks excellent. Good job.

Cheers,
Brcha
signature.asc

BogDan

unread,
Mar 29, 2013, 3:58:31 PM3/29/13
to android-qt
Hi,

I found and fixed two problems in Ministro 9.1, is about concurrent
use of Ministro by multiple applications and about external sources
handling.
The new Ministro package can be downloaded from:
http://files.kde.org/necessitas/installer/release/Ministro%20II%20v9.2.apk

Cheers,
BogDan.

BogDan Vatra

unread,
Mar 29, 2013, 5:53:45 PM3/29/13
to android-qt, Necessitas
Hello again,

I found (and fixed) two more problems that affects Qt5:
- parse and pass static init classes to the caller. This information
is used to initialized .jar plugins (I tested with Qt Sensors).
- refresh the libs list of the pending sessions before starting them.

Please use Ministro 9.3 version
(http://files.kde.org/necessitas/installer/release/Ministro%20II%20v9.3.apk)

BogDan.


2013/3/29 BogDan <taipan...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups "android-qt" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to android-qt+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

BogDan Vatra

unread,
Apr 2, 2013, 2:36:55 PM4/2/13
to android-qt, Necessitas
Hello,

I had to fix two more small problems:
- the update procedure.
- download every repository to its own folder.

I uploaded the new version to KDE here:
http://files.kde.org/necessitas/installer/release/Ministro%20II%20v9.4.apk

This version if *NOT* compatible with any 9.x versions, but is still compatible
with all released Ministro versions from 5.x to 8.x (the versions released on
Google Play).

I really hope this will be the last update on 9.x series !

Any help to test it will be very appreciated !

Cheers,
BogDan.

2013/3/29 BogDan Vatra <taipan...@gmail.com>:

Marco Bernasocchi

unread,
Apr 10, 2013, 5:16:39 AM4/10/13
to BogDan, BogDan Vatra, android-qt, Necessitas
Hi BogDan, thanks a lot for the feature,, sounds great to me (QT with
double qreal). is there any more documentation on how to create a
repository?

ciao


On 04/10/2013 11:08 AM, BogDan wrote:
> Many thanks Eskil,
>
> I'll update it soon.
>
> Cheers,
> BogDan.
>
>
> ----- Original Message -----
>> From: Abrahamsen-Blomfeldt Eskil <Eskil.Abraham...@digia.com>
>> To: BogDan Vatra <taipan...@gmail.com>; android-qt <andro...@googlegroups.com>
>> Cc: Necessitas <necessit...@kde.org>
>> Sent: Wednesday, April 10, 2013 12:05 PM
>> Subject: SV: New Ministro version and new features, help needed to test it
>>
>> I've tested this against Qt 5, and except for a minor issue (which will be
>> fixed in Qt), it works fine. This is ready for production in my opinion. :)
>>
>> Thanks!
>>
>> -- Eskil
>>
>> -----Opprinnelig melding-----
>> Fra: necessitas-d...@kde.org [mailto:necessitas-d...@kde.org]
>> P� vegne av BogDan Vatra
>> Sendt: 2. april 2013 20:37
>> Til: android-qt
>> Kopi: Necessitas
>> Emne: Re: New Ministro version and new features, help needed to test it
>> _______________________________________________
>> Necessitas-devel mailing list
>> Necessit...@kde.org
>> https://mail.kde.org/mailman/listinfo/necessitas-devel
>> _______________________________________________
>> Necessitas-devel mailing list
>> Necessit...@kde.org
>> https://mail.kde.org/mailman/listinfo/necessitas-devel
>>
> _______________________________________________
> Necessitas-devel mailing list
> Necessit...@kde.org
> https://mail.kde.org/mailman/listinfo/necessitas-devel
>


--
Marco Bernasocchi
http://opengis.ch

BogDan Vatra

unread,
Apr 10, 2013, 5:57:49 AM4/10/13
to Abrahamsen-Blomfeldt Eskil, android-qt, Necessitas
Updated on Android Play, Amazon and Samsung will be updated next week.

Cheers,
BogDan.

2013/4/10 Abrahamsen-Blomfeldt Eskil <Eskil.Abraham...@digia.com>:
> I've tested this against Qt 5, and except for a minor issue (which will be fixed in Qt), it works fine. This is ready for production in my opinion. :)
>
> Thanks!
>
> -- Eskil
>
> -----Opprinnelig melding-----
> Fra: necessitas-d...@kde.org [mailto:necessitas-d...@kde.org] På vegne av BogDan Vatra
> Sendt: 2. april 2013 20:37
> Til: android-qt
> Kopi: Necessitas
> Emne: Re: New Ministro version and new features, help needed to test it
>

Marco Bernasocchi

unread,
Apr 10, 2013, 6:16:56 AM4/10/13
to BogDan, BogDan Vatra, android-qt, Necessitas
Ok, thanks, but there is no run.sh :(

On 04/10/2013 11:20 AM, BogDan wrote:
> Sadly, no, but I think this repo http://quickgit.kde.org/?p=necessitas-tools.git should be enough for you to understand how it works.
>
> Check run.sh script from qt5 branch.

Marco Bernasocchi

unread,
Apr 10, 2013, 6:20:47 AM4/10/13
to BogDan, BogDan Vatra, android-qt, Necessitas
On 04/10/2013 12:16 PM, Marco Bernasocchi wrote:
> Ok, thanks, but there is no run.sh :(

Sorry, found
http://quickgit.kde.org/?p=necessitas-tools.git&a=blob&h=d49fde5a099eed841629f9a941b0cf945f2ed87f&f=ministrorepogen%2Frun.sh&o=plain

Marco Bernasocchi

unread,
Apr 10, 2013, 7:23:26 AM4/10/13
to BogDan, BogDan Vatra, android-qt, Necessitas
Bogdan, all,
can this be used to publish non qt libs (and qt4) as well? I've plenty
of native libs that I could deploy this way as well.

ciao


On 04/10/2013 11:20 AM, BogDan wrote:
> Sadly, no, but I think this repo http://quickgit.kde.org/?p=necessitas-tools.git should be enough for you to understand how it works.
>
> Check run.sh script from qt5 branch.
>
> Cheers,
> BogDan.
>
>
>
> ----- Original Message -----
>> From: Marco Bernasocchi <ma...@bernawebdesign.ch>
>> To: BogDan <bog_d...@yahoo.com>

jojo

unread,
Apr 11, 2013, 8:40:07 AM4/11/13
to android-qt
Hello BogDan,

after updating my Android Phone from Ministro V8.9.2 to V9.4 the fonts
in my Necessitas apps are much bigger than before.
This happens also in other Necessitas apps I found in the Play Store.
Can you please check this? Thank you.


On Apr 10, 11:57 am, BogDan Vatra <taipanroma...@gmail.com> wrote:
> Updated on Android Play, Amazon and Samsung will be updated next week.
>
> Cheers,
> BogDan.
>
> 2013/4/10 Abrahamsen-Blomfeldt Eskil <Eskil.Abrahamsen-Blomfe...@digia.com>:
>
>
>
>
>
>
>
> > I've tested this against Qt 5, and except for a minor issue (which will be fixed in Qt), it works fine. This is ready for production in my opinion. :)
>
> > Thanks!
>
> > -- Eskil
>
> > -----Opprinnelig melding-----
> > Fra: necessitas-devel-boun...@kde.org [mailto:necessitas-devel-boun...@kde.org] På vegne av BogDan Vatra
> > Sendt: 2. april 2013 20:37
> > Til: android-qt
> > Kopi: Necessitas
> > Emne: Re: New Ministro version and new features, help needed to test it
>
> > Hello,
>
> > I had to fix two more small problems:
> > - the update procedure.
> > - download every repository to its own folder.
>
> > I uploaded the new version to KDE here:
> >http://files.kde.org/necessitas/installer/release/Ministro%20II%20v9....
>
> > This version if *NOT* compatible with any 9.x versions, but is still compatible with all released Ministro versions from 5.x to 8.x (the versions released on Google Play).
>
> > I really hope this will be the last update on 9.x series !
>
> > Any help to test it will be very appreciated !
>
> > Cheers,
> > BogDan.
>
> > 2013/3/29 BogDan Vatra <taipanroma...@gmail.com>:
> >> Hello again,
>
> >> I found (and fixed) two more problems that affects Qt5:
> >>  - parse and pass static init classes to the caller. This information
> >> is used to initialized .jar plugins (I tested with Qt Sensors).
> >>  - refresh the libs list of the pending sessions before starting them.
>
> >> Please use Ministro 9.3 version
> >> (http://files.kde.org/necessitas/installer/release/Ministro%20II%20v9.
> >> 3.apk)
>
> >> BogDan.
>
> >> 2013/3/29 BogDan <taipanroma...@gmail.com>:
> >>> Hi,
>
> >>> I found and fixed two problems in Ministro 9.1, is about concurrent
> >>> use of Ministro by multiple applications and about external sources
> >>> handling.
> >>> The new Ministro package can be downloaded from:
> >>>http://files.kde.org/necessitas/installer/release/Ministro%20II%20v9.
> >>> 2.apk
>
> >>> Cheers,
> >>> BogDan.
>
> >>> --
> >>> You received this message because you are subscribed to the Google Groups "android-qt" group.
> >>> To unsubscribe from this group and stop receiving emails from it, send an email to android-qt+...@googlegroups.com.
> >>> For more options, visithttps://groups.google.com/groups/opt_out.
>
> > _______________________________________________
> > Necessitas-devel mailing list
> > Necessitas-de...@kde.org
> >https://mail.kde.org/mailman/listinfo/necessitas-devel

Christophe M

unread,
Apr 11, 2013, 8:41:51 AM4/11/13
to andro...@googlegroups.com

Same here with nexus 4

BogDan

unread,
Apr 14, 2013, 6:29:47 AM4/14/13
to android-qt, Necessitas
Hi,

Many thanks for your report! I truly apologize for this
inconvenient,
I fixed the problem in Ministro v9.5.
Please download it and check it from here:
http://files.kde.org/necessitas/installer/release/Ministro%20II%20v9.5.apk

Any feedback is very appreciated !!!

The new version will land on Google Play in about one week, of course
if
nobody report no problems.

Cheers,
BogDan.

Marek Floriańczyk

unread,
Apr 15, 2013, 6:45:53 AM4/15/13
to necessit...@kde.org, android-qt

Hello,

After upgrading to new Ministro (I installed it on top of old version), I have two issues.

1. My application is written to work "full screen" mode. From Time to time when I start it up, it does not use all available screen. I have it locked in landscape mode, and at startup I check resolution with:

QDesktopWidget *mydesk = QApplication::desktop();

qDebug()<<"width:"<<mydesk->width()<<" height:"<<mydesk->height();

Please find attached debug from two startups, first one, app is using full screen (and is reporting width: 854 height: 480) and second time it is not (reporting width: 854 height: 442).

I have to say, I had this issue even before upgrade to new Ministro, but now it seems to be more often. In both cases application is exactly the same. It was tested on two phones Sony Xperia J (iCS 4.04) and Huawei G300 (ICS 4.1.1).

2. After upgrade, some widgets, very basic ones, like QWidget's in QStackWidget pages changed color, before upgrade they were black, and after upgrade I needed to explicitly apply stylesheet on them with black as default color.

When I removed Ministro and apps from phone, and made fresh installation, effect is the same.

Apart from that, everything else is working great!

best regards

Marek

debug.log

jojo

unread,
Apr 15, 2013, 10:09:04 AM4/15/13
to android-qt
Hi,

No worries! Thanks for your hard work and for the fix. Fonts are
normal now.


On 14 Apr., 12:29, BogDan <taipanroma...@gmail.com> wrote:
> Hi,
>
>   Many thanks for your report! I truly apologize for this
> inconvenient,
> I fixed the problem in Ministro v9.5.
> Please download it and check it from here:http://files.kde.org/necessitas/installer/release/Ministro%20II%20v9....

BogDan Vatra

unread,
Apr 15, 2013, 12:41:31 PM4/15/13
to android-qt, Necessitas
Hi,

1. I bet it has nothing to do with Ministro :)
2. Hmm ... this is exactly what I've tried to fix in 9.5.

I'll need more help from you to find the problem.
I need to do the following steps for me:
1. Uninstall Ministro.
2. Download http://files.kde.org/necessitas/installer/release/Ministro%20II%20v8.9.2.apk
and install it from your computer: $ adb install Ministro II
v8.9.2.apk
3. Run your application and take a screenshot (you can use ddms for that job).
4. Upgrade Ministro to 9.4 (use Google Play for that job).
5. Run again your application and take another screenshot. This one
should be different from the first one.
6. Download http://files.kde.org/necessitas/installer/release/Ministro%20II%20v9.5.apk
and install it from your computer: $ adb -r install Ministro II
v9.5.apk . Please make sure it is installed correctly, go to settings
apps and tap on Ministro, and check the version.
7. Run again your application and take the last screenshot. If it
doesn't looks *exactly* like the fist one, then please post the
screens here and send me the application .apk. You can send it
privately if you don't want to share it with everyone, I promise I'll
not share it with anyone if you don't want it. If the first and the
last screens are the same please post the confirmation.


Thanks,

Cheers,
BogDan.



2013/4/15 Marek Floriańczyk <marek.fl...@gmail.com>:

BogDan Vatra

unread,
Apr 15, 2013, 12:42:32 PM4/15/13
to android-qt, Necessitas
Thanks for the feedback!

BogDan.

P.S. The colors are ok ?

2013/4/15 jojo <bobb...@googlemail.com>:

Marek Floriańczyk

unread,
Apr 16, 2013, 4:39:26 AM4/16/13
to necessit...@kde.org, BogDan Vatra, android-qt
Dnia poniedziałek, 15 kwietnia 2013 o 18:41:31 BogDan Vatra napisał(a):
> Hi,
Hi,

Sorry for the delay.

>
> 1. I bet it has nothing to do with Ministro :)

Well. maybe not after all...

> 2. Hmm ... this is exactly what I've tried to fix in 9.5.
>
> I'll need more help from you to find the problem.
> I need to do the following steps for me:
> 1. Uninstall Ministro.
> 2. Download
> http://files.kde.org/necessitas/installer/release/Ministro%20II%20v8.9.2.a
> pk and install it from your computer: $ adb install Ministro II
> v8.9.2.apk

adb install Ministro\ II\ v8.9.2.apk
3145 KB/s (536769 bytes in 0.166s)
pkg: /data/local/tmp/Ministro II v8.9.2.apk
Success

> 3. Run your application and take a screenshot (you can use ddms for that
> job). 4. Upgrade Ministro to 9.4 (use Google Play for that job).

done.

> 5. Run again your application and take another screenshot. This one
> should be different from the first one.
> 6. Download
> http://files.kde.org/necessitas/installer/release/Ministro%20II%20v9.5.apk
> and install it from your computer: $ adb -r install Ministro II
> v9.5.apk . Please make sure it is installed correctly, go to settings
> apps and tap on Ministro, and check the version.

adb install -r Ministro\ II\ v9.5.apk
2639 KB/s (542653 bytes in 0.200s)
pkg: /data/local/tmp/Ministro II v9.5.apk
Success

And I have checked in phone, version is 9.5

> 7. Run again your application and take the last screenshot. If it
> doesn't looks *exactly* like the fist one, then please post the
> screens here and send me the application .apk. You can send it
> privately if you don't want to share it with everyone, I promise I'll
> not share it with anyone if you don't want it. If the first and the
> last screens are the same please post the confirmation.

It looks exactly the same. When I try starting application a few times it
looks exactly the same as 8.9.2 version, and behaves in the same manner, some
time higher, some time shorter.

BTW, ddms is nice tool.

Best Regards
Marek
screen1-ministro-95.png
screen1-ministro-892.png
screen2-ministro-95.png
screen1-ministro-google-play.png
screen2-ministro-892.png
screen2-ministro-google-play.png
screen3-ministro-95.png
screen4-ministro-95.png

BogDan Vatra

unread,
Apr 16, 2013, 1:43:25 PM4/16/13
to Marek Floriańczyk, android-qt, necessit...@kde.org

Hi,

Thanks for your feedback.

Cheers,
BogDan.

Reply all
Reply to author
Forward
0 new messages