How to changing app language

I have to set locale too. Otherwise it gave me a null pointer exception.