What's new in Android and 2.2 (Froyo) - Google

knapsackyarnMobile - Wireless

Dec 14, 2013 (3 years and 6 months ago)

103 views

Revised v4Presenter
What’s new in Android and 2.2 (Froyo)
Justin Mattson
Developer Advocate
cyngus
App Monetization
New Seller Countries
Belgium, Denmark, Finland, Norway, Portugal,
Russia, Sweden, Switzerland
New Buyer Countries
Belgium, Czech Republic, Denmark, Finland,
Ireland, Norway, Poland, Portugal, Russia, Sweden
Market Licensing Service

Allows paid apps to check their licensing status

Puts policy control in the hands of the developer

License Verification Library (LVL) available as an SDK
add-on

Requires Android 1.5, 99.9% of devices
Android Market Licensing Server
Best Practices

Use tools to obfuscate code

Modify LVL

Checksum yourself

Perform license validation server-side
Application Error Reports
Application Error Reports
Revised v4Presenter
Key Froyo Features
Speed!
Just-In-Time (JIT) Compilation
2x – 5x
application speed-up
Speed!
Javascript Performance
2
x – 3x
V8 for Android
Device Admin API
Enables enterprise apps
Device Admin API
Install app,
register as
device admin
Enables enterprise apps
Device Admin API
Install app,
register as
device admin
Request pre-configured
security policy
Enables enterprise apps
Device Admin API
Install app,
register as
device admin
Request pre-configured
security policy
Enforce policy
Password policies:
Minimum length
PIN, Alphanumberic
Reset
Maximum failed login attempts
Data wipe
Screen lock timeout
Enables enterprise apps
Writing a Device Admin

Register receiver for device admin state changes
Writing a Device Admin

Register receiver for device admin state changes
Subclass of
DeviceAdminReceiver
Writing a Device Admin

Register receiver for device admin state changes
Subclass of
DeviceAdminReceiver
Declare Bind Device
Admin permission
Respond to Device
Admin Enabled intent
Writing a Device Admin

Register receiver for device admin state changes
Subclass of
DeviceAdminReceiver
Declare Bind Device
Admin permission
Respond to Device
Admin Enabled intent
Declare security policies used in meta-data
Device Policy Support
Writing a Device Admin

ACTION_ADD_DEVICE_ADMIN
intent will cause the system to prompt the
user to activate the device administrator
Device Administrator Callback
Cloud-to-Device Messaging
C2DM
servers
1
Request Reg ID
2
Send Reg ID
3
Send Reg ID to app server
4
Push request
5
Push message
6
Request data
7
Send Response
App Data Backup API
App Data
shared pref / SQLite /
internal storage
App Data Backup API
Backup Transport
Google
other
providers
App Data
shared pref / SQLite /
internal storage
Backup Agent
Backup Manager
onBackup()
Speech API

Build your own speech-to-text service with
RecognitionService

RecognitionService.Callback provides more granular
event information

Additional extras in RecognizerIntent allow for
more flexibility
o
Language preference
o
Streaming results
o
Silence length
o
Minimum input time
Install on SD
Want to see the complete list?
http://developer.android.com/sdk/android-2.2-highlights.html
Want to see the complete list?
SPEED!
WiFi
HotSpot
Audio Focus
OpenGL ES 2.0
UI Modes
Multi-touch
improvements
Advanced Audio
Recording
Speech
Recognition API
http://developer.android.com/sdk/android-2.2-highlights.html
Resources
http://developer.android.com
http://stackoverflow.com/questions/tagged/android
http://code.google.com/mobile