GeeCON Prague 2014*
The moose likes Features new in Java 8 and the fly likes Java in 24 Hours, Android app in the book, uniqueness of the book Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Features new in Java 8
Bookmark "Java in 24 Hours, Android app in the book, uniqueness of the book" Watch "Java in 24 Hours, Android app in the book, uniqueness of the book" New topic
Author

Java in 24 Hours, Android app in the book, uniqueness of the book

margaret gillon
Ranch Hand

Joined: Nov 12, 2008
Posts: 318
    
    5

Hi Rogers,

I learned Linux from a Sams 24 hour book and enjoy the series. I have a couple questions about your new Java book.

1) I was interested that you decided to include writing an Andoird app as part of the book. Is Java 8 more Android friendly than previous Javas ?

2) If I don't win the promotional copy of "Java in 24 hours" on the Ranch what is it about this book that is unique enough that I would buy it instead of all the other Java 8 books being released ?

Nice to meet you!

Margaret.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42047
    
  64
I was interested that you decided to include writing an Andoird app as part of the book. Is Java 8 more Android friendly than previous Javas ?

That is indeed interesting, given that the Dalvik VM does not support any of the new Java 8 features or APIs. While that may happen at some point in time, I think it would need a rapprochement between Google and Oracle to happen, and that seems unlikely right now. Would you agree?


Ping & DNS - my free Android networking tools app
Rogers Cadenhead
author
Greenhorn

Joined: May 13, 2014
Posts: 12
    
    5
I added a double-length chapter on Android to the book because so many people are learning Java specifically to create apps. I wanted to give readers an introduction to app development that's compatible with Sams Teach Yourself Android Application Development in 24 Hours, which has a new edition that came out last fall.

Java 8 itself doesn't change much in regard to Android, but Android itself has been enhanced since the previous edition of my book.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42047
    
  64
Java 8 itself doesn't change much in regard to Android

I wouldn't quite put it that way, given that Android is based on the Java 5 class file format, with some Java 6 API enhancements. But Java 8 introduces several class file format changes (namely in JSR-292, JSR-308 and JSR-335), which Dalvik currently knows nothing about. So any libraries compiled to make use of those will not run on Android. Right now, and for the foreseeable future, one would still have to use "java1.5" as the javac target, so using those Java 8 features is not possible in Android apps.
 
GeeCON Prague 2014
 
subject: Java in 24 Hours, Android app in the book, uniqueness of the book