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

后端 未结 2 930
不思量自难忘°
不思量自难忘° 2021-02-02 02:29

In my android app I am using this intent to start fm radio

Intent i = new Intent(Intent.ACTION_MAIN);
PackageManager manager = getPackageManager();
i = manager.g         


        
2条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-02 03:20

    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!

提交回复
热议问题