Alcinoe icon indicating copy to clipboard operation
Alcinoe copied to clipboard

Found fix for app that stalled on the splash screen

Open campbell-gary opened this issue 2 years ago • 3 comments

An app that contained only the ALMemo was stalling at the splash screen.

The ALFmxControls (which ran without any problems on my phone) were loading the Libraries from here: ..\Alcinoe\Demos\ALFmxControls_Source\android\Merged\libs\64bit

but the app I created (with only the ALMemo) was loading libraries from here: C:\Program Files (x86)\Embarcadero\Studio\22.0\lib\android\debug

So I disabled the Libraries and used the Libraries from ..\Alcinoe\Demos\ALFmxControls_Source\android\Merged\libs\64bit

Even though it now runs, there is a slight glitch with the magnifying glass showing too much text (when either the left or right selection points is pressed down)

campbell-gary avatar May 06 '23 19:05 campbell-gary

hello, you must use a script like https://github.com/MagicFoundation/Alcinoe/blob/master/Demos/ALFmxControls/_Source/android/MergeLibraries.bat to include the libraries you need in you project. you must also include some res (like start icon, etc.) manually like it's done in https://github.com/MagicFoundation/Alcinoe/tree/master/Demos/ALFmxControls/_Source/android/App/res

when it's done you must use tool like android monitor to watch the output log of you app to see exactly where the problem is

Zeus64 avatar May 07 '23 09:05 Zeus64

Thank you. I did a simple test on the ALMemo. The ALMemo has a property named DefStyleAttr which is set to BlueBGTextViewStyle. If the BlueBGTextViewStyle property is removed, and the app recompiled, the ALMemo "magnifying glass" appears with a border shadow, and the highlighted text overlays the text on the line above it.

When I set the DefStyleAttr property back to BlueBGTextViewStyle, then the "magnifying glass" effect works normally. The reason I experimented with this setting is because not all users would potentially want a blue background for their memo. Some users may prefer a white (or other color) background with black text.

campbell-gary avatar May 08 '23 17:05 campbell-gary

to update the design of the ALmemo, under android it's work the same way as any other android app, you need to update the styles.xml. you can see an example here : https://github.com/MagicFoundation/Alcinoe/blob/master/Demos/ALFmxControls/_Source/android/App/res/values-v21/styles.xml

Zeus64 avatar May 08 '23 19:05 Zeus64