Android Question Palette - Create color palette from bitmap

woniol

Active Member
Licensed User
Longtime User
Hello,
I have a problem running the example https://www.b4x.com/android/forum/threads/palette-create-color-palette-from-bitmap.75033/#content
using B4A v6.31.
I get this error when I load lay1 in Designer:

B4X:
An error occurred.
Error loading file.
unkonwn type: 12
and some errors when I start the app:
B4X:
LogCat connected to: 1b664737
--------- beginning of main~i:** Service (starter) Create **
** Service (starter) Start **
** Service (pushservice) Create **
** Service (pushservice) Start **
--------- beginning of system
** Activity (main) Pause, UserClosed = true **
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 350)
java.lang.RuntimeException: java.lang.RuntimeException: unknown type
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:166)
    at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
    at de.amberhome.example.palette.main._activity_create(main.java:350)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
    at de.amberhome.example.palette.main.afterFirstLayout(main.java:102)
    at de.amberhome.example.palette.main.access$000(main.java:17)
    at de.amberhome.example.palette.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:158)
    at android.app.ActivityThread.main(ActivityThread.java:7224)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: java.lang.RuntimeException: unknown type
    at anywheresoftware.b4a.ConnectorUtils.readMap(ConnectorUtils.java:144)
    at anywheresoftware.b4a.ConnectorUtils.readMap(ConnectorUtils.java:133)
    at anywheresoftware.b4a.ConnectorUtils.readMap(ConnectorUtils.java:133)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:140)
    ... 14 more
java.lang.RuntimeException: java.lang.RuntimeException: unknown type
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
 
Last edited:

MarcoRome

Expert
Licensed User
Longtime User
When i click on link View attachment 54137 i have this message

upload_2017-3-26_16-49-58.png
 
Upvote 0

woniol

Active Member
Licensed User
Longtime User
Yes, but it looks like a problem with
B4X:
lay1.bal
Maybe FontAwesome was used in designer and it works with B4A v6.50
 
Last edited:
Upvote 0
Top