updated ResorceManager and MainActivity.