get packagemanager from application, not activity

Change-Id: I4680c620aee9a4004e616598be38c6f81b66452f
drop Constants class

Change-Id: I29d6211e34074552c1011f7807395c0ef9e2221b