mapbox / mapbox-navigation-android-examples

Other
53 stars 46 forks source link

Bring Mapbox SDK to Android Auto with Java issue #139

Open dinhthienkhai opened 2 years ago

dinhthienkhai commented 2 years ago

Hi guys, I am a newbie. Currently I want to use Mapbox SDK to develop a navigation app that runs on Android Auto. However, my issue is that I only know how to use Java, but the current tutorials I can find are all using Kotlin. So I hope someone share me how or Example code about integrating MapBox SDK for Android Auto by Java. I sincerely thank.

kmadsen commented 2 years ago

Thank you for the issue @dinhthienkhai!

We are definitely supporting Java with the android auto sdk. We will be looking to add a Java only example to this repository soon!

That said, we're also optimizing the api for kotlin. With kotlin there is less boilerplate, better null safety, and coroutines improve background tasks and race conditions. The community opinion is, it would be in your best interest to learn some more kotlin for android apps. https://developer.android.com/kotlin/first

dinhthienkhai commented 2 years ago

Thanks for your information @kmadsen, I think some examples of Java would be very helpful, as there will be many people who only know how to use Java like me. However, I also think that I have to learn more kotlin because the kotlin community is really strong. One more time thank you very much.

kmadsen commented 2 years ago

@dinhthienkhai a little status update here. We're still declaring long term apis for the android auto sdk and we will be verifying their interop with java https://github.com/mapbox/mapbox-navigation-android/pull/6292

jonasrotilli commented 10 months ago

I also prefer Java over Kotlin. It's not actually a preference, but for those who already have an application made natively in Java, it's somewhat unfeasible to switch to Kotlin, even if it's possible to do both at the same time.