how do i get canonical names of packages of deafult apps in Android
问题 I need to know the canonical names of a few Default Android applications like Email, Contacts & others. I want to be able to start them using their canonical names. Like Intent i = new Intent("com.pacakge.canonicalname"); So any ideas where i could get a list of the canonical package names of default Android apps? thanks 回答1: There's a method in the PackageManager class called currentToCanonicalPackageNames(String[] names), which I suspect could be used to do what you're asking. So something