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