Porting Android app to run on BlackBerry 10 Android runtime - Google Maps

后端 未结 3 413
旧巷少年郎
旧巷少年郎 2021-01-25 07:30

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 AP

3条回答
  •  旧时难觅i
    2021-01-25 07:46

    You have to remove all references to MapView or MapActivity in the Android code for you to be able to port over to BlackBerry. I'd recommend going one step further: replace MapView with WebView and load the Google Maps mobile site with Javascript. More info can be found here:

    http://developer.blackberry.com/android/apisupport/apisupport_mapping_support.html

    Yes, that will result in maintaining two versions of your app, but it will provide a better experience for BlackBerry users.

    Hope this helps.

提交回复
热议问题