Updated MainActivity.java

Checked in PackageManager code