Created by: rahulpandey
The following code useful for those who are using action bar Appcompat library