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:
- Using a heuristic approach to gather likely candidates for the radio app's package name*
- 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
How to Delete Other Applications Cache from Our Android App
How to Make Proguard Ignore External Libraries
Mediaplayer Error (1, -1004) Aka Media_Error_Io Trying to Stream Music on Samsung S3
Phonegap - Navigator.App.Backhistory() Not Working on HTML Back Button
How to Programmatically Trigger the Touch Event in Android
Getfilesdir() VS Environment.Getdatadirectory()
Highlight Custom Listview Item When Long Click
How to Correctly Use Google Plus Sign in with Multiple Activities
Android String.Xml Reading HTML Tags Problem
Viewpager Intercepts All X-Axis Ontouch Events. How to Disable
How to Share Photo with Caption via Android Share Intent on Facebook
Android Alternate Row Colors in Listview
How to Keep the Aspect Ratio on Image Buttons in Android
How to Create Xmpp Chat Client for Facebook
Load the Image Saved in Sdcard in Webview