by eggy · 10y ago · 0 comments
I almost feel like I should just go completely Android given the numbers of devices out there is overwhelming compared with Windows/iOS/OS X combined. I will keep up with my other PLs and things simply through osmosis. It's time to join the Borg!
It does a really good job at fixing java's issues and since it outputs bytecode, you can write entire Android apps with it without writing a single line of java.
As I wrote downstream, I just need to commit to Java (or Kotlin!) I think!
As for Xamarin, it really depends on what you want to do. If this is just a hobby project, well go for it. Otherwise, the only use case where it is really interesting is when you need to write an app for both iOS & Android on the cheap.
I am thinking more and more against my wish, that biting the bullet and just going Java all the way is the key. Kotlin, Xtend, you still have to read Android SDK code in Java, correct?
In terms of books, a friend bought me "Android 6 for Programmers: An App-Driven Approach (3rd Edition) (Deitel Developer Series)" to get me off the fence. I am going to work through it as much as I can to give Java a fair shake. I used to program in Java 5 for little side projects, but never mobile except for demo or tutorial apps years later.
Is this a good Android/Java book, or should I stay on board with my interests and do an Android Game or Android AI book slant?
Trying to write an app that isn't a game will make you enjoy the pleasures of JNI calls, given the APIs exposed to the NDK.
Syntax is a subjective thing; I just don't like Java. I was hoping Google was going to come up with something (other than Go), for Android.
I have tried a lot of the work arounds, and simply put, Java is the way to do Android right, so I guess I need to get over it!
Java is and will keep being the only main language on Android, with a little help from C++ when needed.
https://www.reddit.com/r/androiddev/comments/4tm8i6/were_on_...
I am on a similar route, but I do like Java, what I dislike is their fork that prevents me to fully use Java™.
The NDK is pervasively used by many many applications; that's why it's getting more support.
For some reason this seems unpopular with the android team, who seem to keep trying to avoid the issue when ever its raised at I/O...but hey, clearly at least someone is paying attention to what the statistics are showing.
Sure, it's some extra hoops to jump though; but shared business logic that you can use on any code base on any platform; that's a really really compelling reason to use the NDK, or one of the stacks based on it (eg. Xamarin, react native).
It's not just for some edge case. The biggest players in the field are doing this.
I think it's misrepresentative to try to characterize this as 'just for games'...
However the Android team, which is composed by quite a few ex-Sun Java team members, seems to not share the same love for C++ as Microsoft or the even their own Google clang team do.
While I appreciate the safety we get from Java as the Android main language, Symbian, iOS and WP all managed to have native sandboxes.
> I think it's misrepresentative to try to characterize this as 'just for games'...
I don't think so, because although we are able to use the NDK for coding apps, that is clearly not what the Android team wants to allow us to do, given the list of official APIs, which are all to game development related, even POSIX is only partially supported.
Now in Android N there are changes in place to prevent linking to platform libraries written in C or C++ like libpng and Skia.
It is ironic that we are forced to use JNI to make calls into those platform libraries via their Java bindings.
Also I don't believe that if Jetbrains hadn't decided CLion would be a worthy product, the Android team would have spent any effort to improve the life of NDK developers stranded with their decision to drop Eclipse CDT without any alternative.