文档介绍:Scala on Android
How to do efficient Android programming with Scala
Geoffroy Couprie
This book is for sale at /ScalaOnAndroid
This version was published on 2013-06-10
This is a Leanpub book. Leanpub empowers authors and publishers with the Lean Publishing
process. Lean Publishing is the act of publishing an in-progress ebook using lightweight tools and
many iterations to get reader feedback, pivot until you have the right book and build traction once
you do.
©2013 Geoffroy Couprie
Tweet This Book
Please help Geoffroy Couprie by spreading the word about this book on ***
The suggested tweet for this book is:
With ”Scala on Android”, my apps will shine like rainbows
https:///ScalaOnAndroid
via ***@gcouprie
The suggested hashtag for this book is #ScalaOnAndroid.
Find out what other people are saying about the book by clicking on this link to search for this
hashtag on ***:
https:///search/#ScalaOnAndroid
This book is dedicated to my trusted Galaxy S2, which suffered through a lot of null pointer
exceptions before I was enlightened by Scala
Contents
Setting up the development environment . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
The Eclipse setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
The SBT setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Create your first app . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Generate the application’s code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
A first peek into the code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Choose your target . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Run it
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
The power of Scala . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .