Update MainActivity.cpp