Android - Change app Theme on onClick

i know there is a way to change the app default theme on button click. Blackmart developers have done it. I’ve already searched Google like 1000 pages but i found just this (not working) getApplic...