I'm trying to use this code to change the theme in a b4xpages project:
But I get this error when I try to compile:
Any tips to fix this problem are welcome.
Thanks in advance.
Changing the theme at runtime
Using the hooks feature it is possible to change the Activity theme at runtime. The theme is set before the activity is actually shown. This means that in order to change the theme we need to destroy the activity and start it again. You can use StateManager to save the activity state. The...
www.b4x.com
But I get this error when I try to compile:
B4X:
Compilando o código Java. Error
B4A line: 73
End Sub
src\b4a\example\themecolors\main.java:493: error: cannot find symbol
_theme_value = Integer.parseInt(File.ReadString(getFilesDir().toString(), "theme.txt"));
^
symbol: variable _theme_value
location: class main
Any tips to fix this problem are welcome.
Thanks in advance.