gpt4 book ai didi

android - 如何从android以编程方式设置调频 radio 的频率

转载 作者:行者123 更新时间:2023-11-29 01:47:35 25 4
gpt4 key购买 nike

在我的应用程序中,我使用此 Intent 启动调频 radio

Intent i = new Intent(Intent.ACTION_MAIN);
PackageManager manager = getPackageManager();
i = manager.getLaunchIntentForPackage("com.sec.android.app.fm");
i.addCategory(Intent.CATEGORY_LAUNCHER);
startActivity(i);

在 samsung note2 中,我可以通过这个 intent 打开调频 radio 。所以我的问题是如何以编程方式设置频率,如 i.putExtra("setFreq", 94.3);。有没有我必须通过 Intent 传递的参数。我不知道这可能与否。请帮助。谢谢

最佳答案

参见 this forum-post找到控制调频 radio 的 Intent 列表:

  • com.sec.android.app.fm.widget.on
  • com.sec.android.app.fm.widget.off
  • com.sec.android.app.fm.widget.prev
  • com.sec.android.app.fm.widget.next
  • com.sec.android.app.fm.widget.fav0
  • com.sec.android.app.fm.widget.fav1

[直到..]

  • com.sec.android.app.fm.widget.fav11
  • com.sec.android.app.fm.widget.frequency

我不知道如何使用频率 Intent ,但我已经在我的 Galaxy S3(使用 Llama 应用程序)上成功地尝试了其他方法。

关于android - 如何从android以编程方式设置调频 radio 的频率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20467917/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com