I got a problem in one Android Application which I am working in which I am getting error when I use PackageManager.
The Application is as follows:
try this::
this.getPackageManager().getApplicationInfo(this.getPackageName(), 0);
Result doesn't extend Context like your Activity class does. So the method isn't available in that class. You need to call act.getPackageManager() inside there instead of this.getPackageManager().
act.getPackageManager()
this.getPackageManager()