android - 如何正确使用 CyanogenMod 特定的 API

标签 android google-play cyanogenmod

我对 ProfileManager 感兴趣api,但我要问一些更一般的问题。

  1. 怎么引入cyanogen mod的类?
    有SDK/库包吗,还是要下载整个android_frameworks_base工程?

  2. 如何配置 eclipse 以使用这个库?
    我应该检查 android_frameworks_base 作为一个库吗?还是必须将接口(interface)类复制过来?

  3. 是否可以在 google play 上将此应用限制为 cyanogenmod?

提前致谢。

最佳答案

按照以下页面中的步骤操作。尽管它适用于 android 内部 API,但它对任何 CM API 都是一样的,因此它可以正常工作。在识别 API 之前的步骤之后,您可能需要重新启动 IDE,至少对于我来说使用 IntelliJ。

https://devmaze.wordpress.com/2011/01/18/using-com-android-internal-part-2-hacking-around/

关于android - 如何正确使用 CyanogenMod 特定的 API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11989013/

相关文章:

android - Google Play 中的自动更新会降级包吗?

android - 有 20% 的时间从相机拍照失败

php - 在向 mysql 输入数据时删除额外的空间

java - 如何解决 Bitmap 声明中的 NullPointerException。

java - 无法使用 Robotium 与屏幕中的所有 TextView 进行交互

flutter - 我可以使用 Flutter 将我的网站发布到 Google Play 和 Apple 商店吗?

android - 未从 mipmap 文件夹加载启动器图标

.htaccess - 在.htaccess重定向中的url链接上打开Goog​​le Play商店/Apple App Store

android - Cyanogen/dev/uinput 键注入(inject)

android - 有人知道如何在不在智能手机上运行 Q 应用程序的情况下在 Nexus Q 上打开 USB 调试 "ON"吗?