移植Android应用程序在BlackBerry 10上运行Android运行 - 谷歌地图 [英] Porting Android app to run on BlackBerry 10 Android runtime - Google Maps

查看:206
本文介绍了移植Android应用程序在BlackBerry 10上运行Android运行 - 谷歌地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序,我想通过移植的BB Android运行,以提供给黑莓10的用户。唯一的障碍是我的Andr​​oid应用程序使用谷歌地图API(com.google.android.maps),它运行时不支持。该地图画面是应用程序的唯一的一个小功能,我很高兴来禁用它为黑莓用户,但是这可能吗?我不想维护应用程序的两个副本,可我不知怎么$ C c中的一个应用程序$使转换吧的作品,但地图仍然可以在Android?

I have an Android app that I want to make available to BlackBerry 10 users by porting for the BB Android Runtime. The only stumbling block is my Android app uses Google Maps API (com.google.android.maps) which the runtime doesn't support. 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? I don't want to maintain two copies of the application, can I somehow code the one app so that the conversion to BAR works but the maps are still available on Android?

推荐答案

原来是我想做的事情是不可能的 - 谷歌地图API的任何引用必须从应用程序彻底清除。请参阅从黑莓论坛回应:

Turns out what I want to do is not possible - any references to Google Maps API has to be removed completely from the app. See response from the BlackBerry forums :

不,这不是去上班。节省自己的时间试图找到一个解决方法,而只是你的项目复制到一个新的,并进行必要的更改为黑莓手机。如果你使用源代码控制,那么你可以尝试分支关闭该probject。

"No, it's not going to work. Save yourself time trying to find a fix, and just copy your project to a new one and make the needed changes for blackberry. If you are using source control, then you can try branching off for that probject.

顺便说一句。如果你想在你的应用程序谷歌地图,它可以使用web视图和谷歌的的JavaScript API来完成。

By the way. If you want Google maps in your app, it can be done using a webview and Google's javascript API."

这篇关于移植Android应用程序在BlackBerry 10上运行Android运行 - 谷歌地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆