Android Question JavaObject change 'public static final int'

Pendrush

Well-Known Member
Licensed User
Longtime User
I have try to change INT in 'jeremyfeinstein slidingmenu lib'

B4X:
public static final int SLIDING_CONTENT = 0;
with
B4X:
Dim jo As JavaObject = sm
Log(jo.GetField  ("SLIDING_CONTENT")) 'return 1
jo.SetField ("SLIDING_CONTENT",0)
but get this error

java.lang.IllegalAccessException: field is marked 'final'

Is there any other way to change public static final int?
 
Last edited:
Top