4 ms·
Yes. It is hundred percent possible to create an app using kotlin. You don't need to write java code to interface with libraries (though you can if you want to)
by quantummkv 9y ago
Yes. It is hundred percent possible to create an app using kotlin. You don't need to write java code to interface with libraries (though you can if you want to).
Since both Java and Kotlin compile down to the JVM Bytecode, using Java libraries with kotlin won't be an issue.
Convenience might be an issue if you are starting new. Most of the turorials and the official documentation for android are written with Java in mind. There are good books and tutorials available for kotlin and they will only increase day by day. But you will have to work hard for the initial period.
- chatmasta 9y agoI've been programming for 14 years now (if you can count HTML as an 11 year old :p). I've reached professional proficiency in Python, JavaScript. I have minor experience (at least one project) in C, C++, PHP, Prolog. I'm also proficient with bash, SQL, etc... Point is, learning a new language is not a problem for me. That said, I have very little, basically no Java experience (used it 8 years ago in high school, and for a bit at an internship). I also have no Kotlin experience. So either way, I need to learn something if I want to develop natively for android (I'm interested in creating an app heavily dependent on system networking API's, so while I could use JS for the presentation layer, native code is a requirement at some point). How would you recommend approaching this? Should I learn the basics of android programming with Java first, then move to Kotlin? Should I learn them simultaneously somehow? Any resources you can point me to? Thanks for your time.
- mataniko 9y agoIs your goal building an Android application or learning a new language? Instead of asking "Should I use Kotlin or Java to create an Android application?" ask yourself "Do I want to create an Android application using Kotlin or Java?" You're going to get mixed answers from external forces because this is a mostly subjective question. People who used Java for 10 years will obviously recommend one over the other, while early Kotlin adopters will praise their own choice. The biggest concern when choosing a language should be "Can I achieve the same results?" in this case is a yes, because you can always use both in the same project if you need to dive deep into some Android API. Put 10-15 minutes into a simple Hello World in each one, and see which one is more fun and engaging for you to learn.
- chatmasta 9y agoGood advice, thanks. I suppose the goal is to code an Android application but avoid (re)learning Java. I guess I was looking more for validation that this is possible without major headaches.
- quantummkv 9y agoYou can learn them simultaneously. Antonio Leiva has an amazing book on the subject. The kotlin and Android docs should suffice as the sdk methods will remain the same. And kotlin has a simple syntax. And you will have the benefit of Android studio and it's code completion.