I've added the ability to toggle translucent bars on and off for 4.4+ users, but the effects only take place once the app is reloaded. My non-elegant solution would be to inform the user that changes won't take effect until the app is restarted, but I'd like to have a msgbox that could do it for them. I want to close and then reopen the app (as if the user pressed back to leave the app or force closed the app), is this possible?
Also to add the toggle for translucent bars I need to calculate the dip size of the status bar and navbar, right now I have it hard coded. Is there anyway to calculate these two values? And I also need the ability to detect if the user has software or hardware keys, is that possible?