so whats so cool about android 4.x? · fortunately google merged the apis of the tablet version...

32
So whats so cool about Android 4.x? Lars Vogel Lars Vogel http://www.vogella.de Twitter: @vogella

Upload: others

Post on 26-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

So whats so cool about Android 4.x?

Lars VogelLars Vogelhttp://www.vogella.de

Twitter: @vogella

Page 2: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Why Android 4.0 is great

Features of Android 4.0

Can I use it already?

Q&A

Page 3: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Independent Eclipse and Android consultant, trainer and book author

Eclipse committer

Maintains http://www.vogella.de Java, Eclipse and Android related Tutorials with more then a million visitors per month.

About me – Lars Vogel

Page 4: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

The world before Android 4.0

Page 5: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

If I only had the source code.

Page 6: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Two different API's

Page 7: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code.

Page 8: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Android 4.0

Page 9: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Android 4.0

Page 10: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Hardware Rendering is default

Page 11: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Holo Theme – Consistent Theming cross devices

android:theme="@android:style/Theme.Holo"

Theme: DeviceDefault

Page 12: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

The code of this talk examples assume that you know some basics of Android

Page 13: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

ActionBar

Page 14: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

GridLayout

Page 15: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Resizable Widgets

Page 16: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Drag & Drop

Page 17: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Camera Face Detection

Page 18: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Calendar API

Page 19: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

StackView

Page 20: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Fragments

Page 21: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Reminder:

Activities are somthing like a screen in your application

Layout are defined as XML files

Layouts can be selected with resource qualifiers

Page 22: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Always part of an Activity

Componts

Have their own life-cycle

Re-use functionality for different screensizes

Fragments

Page 23: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

ViewPager

Page 24: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Android Beam via NFC

Wi-Fi Direct

Social API

Bluetooth Health Device Profile

Graphics and Animations

TextureView – Like Surface View but integrated

… audio and media

More Stuff

Page 25: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Can I use it?

Page 26: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code
Page 27: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Comp LibFragementsSolution for ActionBarViewPagerGridLayout promissedOwn package → needs replacement

Page 28: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Android 4.0

Page 29: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code
Page 30: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Android: Where to go from here:

Android Introduction Tutorial http://www.vogella.de/articles/Android/article.html

Or Google for „Android Development Tutorial“

Android SQLite and ContentProvider Bookhttp://www.amazon.com/dp/B006YUWEFE

More on Android http://www.vogella.de/android.html

Page 31: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

Thank you

For further questions:

[email protected]://www.vogella.deTwitter http://www.twitter.com/vogellaGoogle+ http://gplus.to/vogella

Page 32: So whats so cool about Android 4.x? · Fortunately Google merged the APIs of the tablet version with the handset version in Anroid 4.0 and released the source code

License & Acknowledgements

• This work is licensed under the Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 Germany License

– See http://creativecommons.org/licenses/by-nc-nd/3.0/de/deed.en_US