<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>It seems you forgot to compile the JNI part, please build the JNI first !</span></div><div><br><span></span></div><div><span>Cheers,</span></div><div><span>BogDan.</span></div><div><span><br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Marco Bernasocchi <marco@bernawebdesign.ch><br> <b><span style="font-weight: bold;">To:</span></b> BogDan <bog_dan_ro@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> Tyler Mandry
<tmandry@gmail.com>; Necessitas <necessitas-devel@kde.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Saturday, April 14, 2012 3:52 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: Android QStyle plugin sources<br> </font> </div> <br>
Hi,<br>trying to run the styles extractor I get:<br>W/dalvikvm( 9990): Exception Ljava/lang/UnsatisfiedLinkError; thrown <br>while initializing Lorg/kde/necessitas/ministro2/ExtractStyle;<br>D/AndroidRuntime( 9990): Shutting down VM<br>W/dalvikvm( 9990): threadid=1: thread exiting with uncaught exception <br>(group=0x40a8c1f8)<br>E/AndroidRuntime( 9990): FATAL EXCEPTION: main<br>E/AndroidRuntime( 9990): java.lang.ExceptionInInitializerError<br>E/AndroidRuntime( 9990): at <br>org.kde.necessitas.ministro2.ExtractStyleInfoActivity.onCreate(ExtractStyleInfoActivity.java:45)<br>E/AndroidRuntime( 9990): at <br>android.app.Activity.performCreate(Activity.java:4465)<br>E/AndroidRuntime( 9990): at <br>android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)<br>E/AndroidRuntime( 9990): at
<br>android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)<br>E/AndroidRuntime( 9990): at <br>android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)<br>E/AndroidRuntime( 9990): at <br>android.app.ActivityThread.access$600(ActivityThread.java:123)<br>E/AndroidRuntime( 9990): at <br>android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)<br>E/AndroidRuntime( 9990): at <br>android.os.Handler.dispatchMessage(Handler.java:99)<br>E/AndroidRuntime( 9990): at android.os.Looper.loop(Looper.java:137)<br>E/AndroidRuntime( 9990): at <br>android.app.ActivityThread.main(ActivityThread.java:4424)<br>E/AndroidRuntime( 9990): at <br>java.lang.reflect.Method.invokeNative(Native Method)<br>E/AndroidRuntime( 9990): at
<br>java.lang.reflect.Method.invoke(Method.java:511)<br>E/AndroidRuntime( 9990): at <br>com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)<br>E/AndroidRuntime( 9990): at <br>com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)<br>E/AndroidRuntime( 9990): at dalvik.system.NativeStart.main(Native Method)<br>E/AndroidRuntime( 9990): Caused by: java.lang.UnsatisfiedLinkError: <br>Couldn't load extract: findLibrary returned null<br>E/AndroidRuntime( 9990): at java.lang.Runtime.loadLibrary(Runtime.java:365)<br>E/AndroidRuntime( 9990): at java.lang.System.loadLibrary(System.java:535)<br>E/AndroidRuntime( 9990): at <br>org.kde.necessitas.ministro2.ExtractStyle.<clinit>(ExtractStyle.java:58)<br>E/AndroidRuntime( 9990): ... 15 more<br>W/ActivityManager( 194): Force finishing
activity <br>org.kde.necessitas.ministro2/.ExtractStyleInfoActivity<br>W/ActivityManager( 194): Activity pause timeout for <br>ActivityRecord{417b8260 <br>org.kde.necessitas.ministro2/.ExtractStyleInfoActivity}<br>I/ActivityManager( 194): Process com.google.android.gm (pid 8892) has died.<br>I/WindowManager( 194): WIN DEATH: Window{419282c8 <br>com.google.android.gm/com.google.android.gm.ConversationListActivityGmail paused=false}<br>W/ActivityManager( 194): Activity destroy timeout for <br>ActivityRecord{417b8260 <br>org.kde.necessitas.ministro2/.ExtractStyleInfoActivity}<br>D/dalvikvm( 9128): GC_CONCURRENT freed 569K, 8% free 9444K/10247K, <br>paused 2ms+17ms<br><br>and the Plugin builds but ant fails. did anybody get theese to work?<br>ciao<br><br><br>On 04/04/2012 08:06 PM, BogDan wrote:<br>> Hello,<br>><br>><br>> I attached the latest sources.<br>><br>> Sorry for show reply.<br>><br>> Cheers,<br>>
BogDan.<br>><br>><br>> ----- Original Message -----<br>>> From: BogDan<<a ymailto="mailto:bog_dan_ro@yahoo.com" href="mailto:bog_dan_ro@yahoo.com">bog_dan_ro@yahoo.com</a>><br>>> To: Tyler Mandry<<a ymailto="mailto:tmandry@gmail.com" href="mailto:tmandry@gmail.com">tmandry@gmail.com</a>><br>>> Cc: Necessitas<<a ymailto="mailto:necessitas-devel@kde.org" href="mailto:necessitas-devel@kde.org">necessitas-devel@kde.org</a>><br>>> Sent: Monday, April 2, 2012 11:00 AM<br>>> Subject: Re: Android QStyle plugin sources<br>>><br>>> Hi Tyler,<br>>><br>>> Are you sure that you follow *all* the steps from my mail ? Especially the first<br>>> three !<br>>><br>>> Otherwise you are trying to use on your device other theme (the one from my<br>>> device), which most probably is not compatible because of screen size<br>>>
differences.<br>>><br>>><br>>> Anyway, latter today I'm going to publish a new version for this plugin, I<br>>> completely redesign the code to make it more QML friendly. Please wait until I<br>>> publish it, then if you can, please rerun the tests.<br>>><br>>><br>>> Cheers,<br>>> BogDan.<br>>><br>>><br>>>><br>>>><br>>>> I made a video of my results on Android 2.3 and 4.0.<br>>> See http://www.youtube.com/watch?v=fzBkuCD-6Ng<br>>>><br>>>><br>>>> Problems with 2.3:<br>>>> * Text is too small<br>>>> * Text overlaps radio buttons and check boxes<br>>>> Problems with 4.0:<br>>>> * Button doesn't look right<br>>>> * ExtractStyleInfo doesn't generate all the files that are mentioned<br>>> in style.qrc on
Android 4.0. To fix this, I just used the files that were in<br>>> there already for the missing files (but used generated files when I could.) See<br>>> below for a list of files.<br>>>> Problems with both:<br>>>> * Keyboard issues.<br>>> See <a href="https://sourceforge.net/p/necessitas/tickets/187/" target="_blank">https://sourceforge.net/p/necessitas/tickets/187/</a>.<br>>>> Missing files from ExtractStyleInfo on Android 4.0:<br>>>><br>>>><br>>>> RCC: Error in '../AndroidStylePlugin/style.qrc': Cannot find file<br>>> 'style/ics/buttonStyleToggle_View_background__16908288__empty.png'<br>>>> RCC: Error in '../AndroidStylePlugin/style.qrc': Cannot find file<br>>> 'style/ics/buttonStyleToggle_View_background__16908288__enabled.png'<br>>>> RCC: Error in '../AndroidStylePlugin/style.qrc': Cannot find file<br>>>
'style/ics/buttonStyleToggle_View_background__16908288__focused.png'<br>>>> RCC: Error in '../AndroidStylePlugin/style.qrc': Cannot find file<br>>> 'style/ics/buttonStyleToggle_View_background__16908288__focused__enabled.png'<br>>>> RCC: Error in '../AndroidStylePlugin/style.qrc': Cannot find file<br>>> 'style/ics/buttonStyleToggle_View_background__16908288__pressed.png'<br>>>> RCC: Error in '../AndroidStylePlugin/style.qrc': Cannot find file<br>>> 'style/ics/buttonStyleToggle_View_background__16908288__window_not_focused__disabled.png'<br>>>> RCC: Error in '../AndroidStylePlugin/style.qrc': Cannot find file<br>>> 'style/ics/buttonStyleToggle_View_background__16908288__window_not_focused__enabled.png'<br>>>> RCC: Error in '../AndroidStylePlugin/style.qrc': Cannot find file<br>>> 'style/ics/buttonStyleToggle_View_background__16908311__checked.png'<br>>>> RCC: Error in
'../AndroidStylePlugin/style.qrc': Cannot find file<br>>> 'style/ics/buttonStyleToggle_View_background__16908311__unchecked.png'<br>>>> RCC: Error in '../AndroidStylePlugin/style.qrc': Cannot find file<br>>> 'style/ics/editTextStyle_View_background__pressed.png'<br>>>> RCC: Error in '../AndroidStylePlugin/style.qrc': Cannot find file<br>>> 'style/ics/radioButtonStyle_CompoundButton_button__checked__pressed.png'<br>>>> RCC: Error in '../AndroidStylePlugin/style.qrc': Cannot find file<br>>> 'style/ics/radioButtonStyle_CompoundButton_button__unchecked__pressed.png'<br>>>> RCC: Error in '../AndroidStylePlugin/style.qrc': Cannot find file<br>>> 'style/ics/spinnerStyle_View_background__enabled.png'<br>>>> RCC: Error in '../AndroidStylePlugin/style.qrc': Cannot find file<br>>> 'style/ics/spinnerStyle_View_background__focused.png'<br>>>> RCC: Error in
'../AndroidStylePlugin/style.qrc': Cannot find file<br>>> 'style/ics/spinnerStyle_View_background__focused__enabled.png'<br>>>> RCC: Error in '../AndroidStylePlugin/style.qrc': Cannot find file<br>>> 'style/ics/spinnerStyle_View_background__window_not_focused__disabled.png'<br>>>> RCC: Error in '../AndroidStylePlugin/style.qrc': Cannot find file<br>>> 'style/ics/spinnerStyle_View_background__window_not_focused__enabled.png'<br>>>><br>>>> On Mon, Mar 19, 2012 at 1:38 PM, BogDan Vatra<br>>> <<a ymailto="mailto:taipanromania@gmail.com" href="mailto:taipanromania@gmail.com">taipanromania@gmail.com</a>> wrote:<br>>>><br>>>> Hello everybody,<br>>>>><br>>>>> These are the sources that I used to make the Android QStyle movie<br>>>>> from this [1] thread.<br>>>>> The package contains two
applications:<br>>>>> - ExtractStyleInfo, is a Android Java/JNI application used to extract<br>>>>> look&style informations from Android O.S.<br>>>>> - AndroidStylePlugin is a qt application, in this application you'll<br>>>>> find the implementation for style plugin.<br>>>>><br>>>>> How to hack:<br>>>>> - create style folder on your sdcard ( $ adb shell mkdir /sdcard/style<br>>> )<br>>>>> - compile& run ExtractStyleInfo.<br>>>>> - pull the extracted data into AndroidStylePlugin/style/ics folder,<br>>>>> then touch "style.qrc" file.<br>>>>> - compile and run AndroidStylePlugin !<br>>>>><br>>>>><br>>>>> Cheers,<br>>>>> BogDan.<br>>>>><br>>>>> [1]<br>>> <a
href="http://groups.google.com/group/android-qt/browse_thread/thread/f12407af5947aefb" target="_blank">http://groups.google.com/group/android-qt/browse_thread/thread/f12407af5947aefb</a><br>>>>><br>>>>> _______________________________________________<br>>>>> Necessitas-devel mailing list<br>>>>> <a ymailto="mailto:Necessitas-devel@kde.org" href="mailto:Necessitas-devel@kde.org">Necessitas-devel@kde.org</a><br>>>>> <a href="https://mail.kde.org/mailman/listinfo/necessitas-devel" target="_blank">https://mail.kde.org/mailman/listinfo/necessitas-devel</a><br>>>>><br>>>>><br>>>><br>>>><br>>>><br>>>> --<br>>>> Tyler Mandry<br>>>><br>>>> _______________________________________________<br>>>> Necessitas-devel mailing list<br>>>> <a ymailto="mailto:Necessitas-devel@kde.org"
href="mailto:Necessitas-devel@kde.org">Necessitas-devel@kde.org</a><br>>>> <a href="https://mail.kde.org/mailman/listinfo/necessitas-devel" target="_blank">https://mail.kde.org/mailman/listinfo/necessitas-devel</a><br>>>><br>>>><br>>>><br>>> _______________________________________________<br>>> Necessitas-devel mailing list<br>>> <a ymailto="mailto:Necessitas-devel@kde.org" href="mailto:Necessitas-devel@kde.org">Necessitas-devel@kde.org</a><br>>> <a href="https://mail.kde.org/mailman/listinfo/necessitas-devel" target="_blank">https://mail.kde.org/mailman/listinfo/necessitas-devel</a><br>>><br>>><br>>> _______________________________________________<br>>> Necessitas-devel mailing list<br>>> <a ymailto="mailto:Necessitas-devel@kde.org" href="mailto:Necessitas-devel@kde.org">Necessitas-devel@kde.org</a><br>>> <a
href="https://mail.kde.org/mailman/listinfo/necessitas-devel" target="_blank">https://mail.kde.org/mailman/listinfo/necessitas-devel</a><br><br><br>-- <br>Marco Bernasocchi<br>www.opengis.ch<br><br><br> </div> </div> </blockquote></div> </div></body></html>