Animatedtiles error on HTC Desire Z

7 views
Skip to first unread message

Marcin Jakubowski

unread,
Mar 1, 2011, 7:49:09 AM3/1/11
to android-qt
Hello,

I installed the Animatedtiles demo from Android Market, then Ministro
service, both installed successfully. When I try to launch Animated
tiles, I get a prompt "Animatedtiles needs extra libraries to run. Do
you want to download them now?" (Yes/No). If I press No, standard
crash window with "Force close" appears (I don't remember how it's
called). If I press yes, "Checking libraries. Please wait..." window
appears and then, 1-3 seconds later, the crash happens.

Neither Ministro nor the app itself tried to download any Qt libraries
(Qt Core, etc.) beforehand so I guess this might be a problem.

I would be happy to post any debug messages to help out but I need
some guidance on how to do it with a real device (link to somewhere in
Android SDK would be perfect).

Regards,
Marcin Jakubowski

stamppot

unread,
Mar 1, 2011, 8:45:19 AM3/1/11
to android-qt
> I installed the Animatedtiles demo from Android Market, then Ministro
> service, both installed successfully. When I try to launch Animated
> tiles, I get a prompt "Animatedtiles needs extra libraries to run. Do
> you want to download them now?" (Yes/No). If I press No, standard
> crash window with "Force close" appears (I don't remember how it's
> called). If I press yes, "Checking libraries. Please wait..." window
> appears and then, 1-3 seconds later, the crash happens.

I get the exact same error, unable to test this so far. I'm very
interested in this, though.

Yaman Umuroglu

unread,
Mar 1, 2011, 8:47:39 AM3/1/11
to andro...@googlegroups.com
Silly question: is the internet connection enabled while you're trying
to run the app?

I've had the same problem on a different device, turns out that
Ministro just exits silently without any "no internet connection"
prompt if there is no connection.

Yaman

Damien Buhl

unread,
Mar 1, 2011, 9:00:41 AM3/1/11
to andro...@googlegroups.com
Hi stamppot and Yaman,

Thanks for the information.
It's nice to propose your help. :)
You can use logcat, installing the android sdk and running: androidSdkLocation/platform-tools/adb logcat
You can find the android sdk here: http://developer.android.com/sdk/index.html

To see all messages of the current activity on the phone, if you could then copy/paste them there it would be perfect. :)

You will find on the following link how to bind your device with adb, following your current OS: http://developer.android.com/guide/developing/device.html#setting-up

On linux you simply have to plug in your usb cable, and add the following file, in /etc/udev/rules.d/51-android.rules :
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0bb4", MODE="0666"

0bb4 is the vendor id of HTC, and it will gives chmod 666 to any HTC usb devices plugged to your linux system. The vendor id is android specific (you'll find the list of id's on the link I gave).

With adb logcat you can then give us the output of the application, so that we know where it crashes.

For example, when running animated tiles demo on my LG 540GT, adb logcat says: http://paste.ubuntu.com/573933

Kindest regards,

Marcin Jakubowski

unread,
Mar 1, 2011, 1:22:36 PM3/1/11
to android-qt
Hi,

On 1 Mar, 13:49, Marcin Jakubowski <mjakubow...@gmail.com> wrote:
> you want to download them now?" (Yes/No). If I press No, standard
> crash window with "Force close" appears (I don't remember how it's
> called). If I press yes, "Checking libraries. Please wait..." window
> appears and then, 1-3 seconds later, the crash happens.
I got back home to follow the links Damien suggested and, to my
surprise, Ministro started downloading the libraries. I had thought
it's maybe because of the wifi connection available but when I
switched to 3G to test it out, it still worked, although switching
itself made Ministro crash. As soon as I figure out the part about
connecting my phone to PC and using adb, I'll post any relevant info I
find.

Also, could you give me heads up on where are the Ministro files
downloaded to? I'll delete them and maybe try to reproduce the error I
had before.

Regards,
Marcin Jakubowski

Yaman Umuroglu

unread,
Mar 1, 2011, 1:28:51 PM3/1/11
to andro...@googlegroups.com
I think it's (at least partly) a simple issue of Ministro not
reporting any errors when no internet connection is detected.

From http://sourceforge.net/p/necessitas/wiki/Todo/ under the Ministro part:

"handle all possible errors and situations. Now, only a small part of
them are handled."

I'm not a Java guru by any means but I think I can submit a patch to
catch the exception when the file download fails and display some
error message ;)

Yaman

Marcin Jakubowski

unread,
Mar 1, 2011, 2:56:52 PM3/1/11
to android-qt
Hi,

On 1 Mar, 19:28, Yaman Umuroglu <malta...@gmail.com> wrote:
> I think it's (at least partly) a simple issue of Ministro not
> reporting any errors when no internet connection is detected.
Nope, not that, I was connected via 3G when the error happened so it
must have been something else.

Nevertheless, I got the example to work! I ran into problems at first,
maybe because I have cancelled downloading of QtCore library at the
very first try - when I switched from wifi to 3G probably. Then,
Ministro would not download QtCore again but start at QtGui. Upon
launching the demo: http://pastebin.com/dbTdU4GL

When I deleted Ministro's data, it downloaded everything from the
start and yay, it works! Qt on Android - unbelievable! Good job BogDan
and everyone involved! (Though my personal life will now be ruined
thanks to the possibility of writing Qt code for Android...)

Regards,
Marcin Jakubowski

Alejandro Exojo

unread,
Mar 1, 2011, 3:21:38 PM3/1/11
to andro...@googlegroups.com
El Tuesday 01 March 2011, Marcin Jakubowski escribió:
> Also, could you give me heads up on where are the Ministro files
> downloaded to? I'll delete them and maybe try to reproduce the error I
> had before.

I don't know where are saved, but if I recall properly from BogDan's video,
you can delete them using the app management tool from the phone, the one that
let's you uninstall an application or remove its data.

--
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net

Damien Buhl

unread,
Mar 2, 2011, 9:24:50 AM3/2/11
to andro...@googlegroups.com
Hi :),

Ministro downloads Qt libraries into
/data/data/eu.licentia.necessitas.ministro/files/qt/

Under this folder you should have lib and plugins, lib contains QtCore,
Gui and so on, and plugins all usual imageformats plugins, the android
integration plugin and others qt plugins.

Thanks for the logcat Marcin, it was indeed what you said, it didn't
re-download QtCore when you canceled it.

> java.lang.UnsatisfiedLinkError: Library
> /data/data/eu.licentia.necessitas.ministro/files/qt/lib/libQtCore.so
> not found
I think BogDan already planned to fix this, but I've added a ticket to
be sure. (https://sourceforge.net/p/necessitas/ministro/tickets/2/)

Thanks for your help ;),
--
daminetreg

Alejandro Exojo wrote:
> El Tuesday 01 March 2011, Marcin Jakubowski escribi�:

Reply all
Reply to author
Forward
0 new messages