Hi guys, I am new to JAVA and Android, however I am catching on quickly due to my knowledge of PHP and C. Anyways, I am curious how to write a restart function. What I want to do is be able to modify my preferences file with new preferences then restart the activity to apply them. The reason I have to restart is because changing theme doesn't apply until you redraw everything... And the only way I know how to do that is to restart.
So I have been using finish(); and then just manually relaunching the app but doing that runs me into two errors:
1) Using finish(); seems to disable the touch screen until you press the home button
2) when I restart my app with its new theme applied, (I am going from theme_white to theme_dark) the buttons change theme but the background stays white... Wierd?
Any ideas on how to write a "restart" function that simply quits the activity and restarts it from scratch? Thanks!





