我有一个 Android 应用程序,我想通过移植 BB Android Runtime 来提供给 BlackBerry 10 用户。唯一的障碍是我的 Android 应用程序使用运行时不支持的 Google Maps API (com.google.android.maps)。 map 屏幕只是该应用程序的一个小功能,我很乐意为黑莓用户禁用它,但这可能吗?我不想维护应用程序的两个副本,我能否以某种方式对一个应用程序进行编码,以便转换为 BAR 有效,但 map 在 Android 上仍然可用?
最佳答案
The map screen is only a small feature of the app and I'm happy to disable it for BlackBerry users, but is this possible?
您可以添加 android:required="false"
给你的<uses-library>
元素,并在运行时检测你是否有 MapActivity
在尝试链接到您的 map 之前上课。 Here is a sample app证明这一点。
理论上,BB 的打包器应该允许这样做。是否如此,我不能说。
关于android - 移植 Android 应用程序以在 BlackBerry 10 Android 运行时运行 - Google map ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14648231/