Dear all,
using the AndroidResources library I am localizing a newly dim'ed string t:
This works fine. t has been localized correctly. Now I want to use t as one entry for a pop-up menu in the AHQuickAction library (v1.0)
I now get a java null pointer exception on t (the bd bitmap is not null), although t can be referenced by, say, ToastMessageShow(t, false).
When I set t in code myself,
the pop-up works fine.
So the problem is narrowed down to an incompatibility between the format of the text passed to my app and then on to the AHQuickAction lib. Could this be due to the fact that the AndroidResource system returns UTF-8-encoded strings? If so, how can I make these calls compatible?
Thank you.
Regards,
using the AndroidResources library I am localizing a newly dim'ed string t:
B4X:
t = mikursres.Get("load_form")
ToastMessageShow(t, False)
This works fine. t has been localized correctly. Now I want to use t as one entry for a pop-up menu in the AHQuickAction library (v1.0)
B4X:
ai.Initialize(1, t, bd) ' ai is of type AHActionItem
ac2.addActionItem(ai) ' ac2 is of type AHQuickAction3D
I now get a java null pointer exception on t (the bd bitmap is not null), although t can be referenced by, say, ToastMessageShow(t, false).
When I set t in code myself,
B4X:
t = "Select a form to load" ' t is a newly dimensioned string
ai.Initialize(1, t, bd) ' ai is of type AHActionItem
ac2.addActionItem(ai) ' ac2 is of type AHQuickAction3D
the pop-up works fine.
So the problem is narrowed down to an incompatibility between the format of the text passed to my app and then on to the AHQuickAction lib. Could this be due to the fact that the AndroidResource system returns UTF-8-encoded strings? If so, how can I make these calls compatible?
Thank you.
Regards,