CyanogenMod uses com.android.fm , for example. I'm not sure about other vendor-specific applications, but I would say that their package names can be very different.
Currently, two, but not necessarily mutually exclusive options come to mind:
- Using a heuristic approach to collect likely candidates for the name of the radio package *
- User requirement to select a radio application from the list of all installed packages
If your application has permissions to access the Internet, you can also collect package names discovered using any method to compile a static list of package names to be included in your next release, hoping to free new users from having to manually select their radio applications .
*) Using PackageManager.getInstalledApplications(...) and scanning the returned List for the entries ".fm." , ".fm" , etc., you can get a list of possible candidates.
source share