How to Make an Fm Radio Application in Android

How to make an FM Radio Application in Android

There is no official API for FM radio in Android, however enthusiasts found the way to enable radio on Nexus One

Devices that I worked with have proprietary vendor-specific API to work with FM radio. Reverse engineering has to be used to figure out API signatures which may (and most likely will) be prohibited by the licence agreement of the device's firmware.

FM radio app for Android

You can use the library below to develop a FM Radio App for android. But this library is firmware dependent.
See here

Hope this will be helpful to you.

How to set a frequency for the fm radio in android?

There is currently no native Android API for playing FM radio.

You need to use 3rd party apps to play FM radio, and each phone vendor / app vendor has it's own API.

You best option is to contact them directly and ask for the relevant API to suit your needs.

Hope this helped!

opening fm radio from the android application

CyanogenMod uses com.android.fm for example. I'm not sure about other vendor-specific radio apps, but I'd say their package names are very likely to differ.

Right now two, not necessarily mutually exclusive options come to mind:

  1. Using a heuristic approach to gather likely candidates for the radio app's package name*
  2. Requiring the user to choose the radio app from a list of all installed packages

If your app has internet permissions, you could also collect the package names discovered using either method to compile a static list of package names to be included in your next release, in the hope of relieving new users from having to manually select their radio app.

*)
Using PackageManager.getInstalledApplications(...) and scanning the returned List for occurrences of ".fm.", ".fm", etc., you might be able to get a list of possible candidates.

Android Intent to launch radio application

This may prove difficult.

Radio is not a part of the Android framework and is custom to manufacture devices. So raising the intent maybe a per device intent. Plus, this only takes into consideration that the manufacture actually set a custom intent receiver when they built the app.



Related Topics



Leave a reply



Submit