The app I am developing requires that I get the package name using PackageManager.
I am able to get the App Icon and and App Name but how do I get the packagename in a way similar to what I have below?
Drawable appIcon = packageManager
.getApplicationIcon(packageInfo.applicationInfo);
String appName = packageManager.getApplicationLabel(
packageInfo.applicationInfo).toString();