kitkat

14
KitKat Altaf ur Rehman

Upload: altaf-rehman

Post on 24-Jun-2015

571 views

Category:

Technology


1 download

DESCRIPTION

Android KitKat featured API

TRANSCRIPT

Page 1: Kitkat

KitKatAltaf ur Rehman

Page 2: Kitkat

Kitkat for

- Designed for Low end device.- 512MB RAM- Reduce fragmentation.

Page 3: Kitkat

Features API perspective

• Printing Framework

• Screen Recording

• SMS provider.

• Animation pause

Page 4: Kitkat

Features API perspective (Cont..)

• Immersive full-screen mode.

• Translucent system bar.

• External Storage Access.

• Drawable for RTL-layout

• App Permissions

• Special cases with regard to 4.4.0

Page 5: Kitkat

Printing Framework

- No specific printing intent.- Have to use PrintHelper,PrintDocumentAdapter.

- At last programmatically create PrintPdfDocument.

- Possible workaround WebView.createPrintDocumentAdapter.

Page 6: Kitkat

Screen Recording

• adb shell screenrecord

• Can protect SurfaceView.setSecure(boolean b)//need further

Page 7: Kitkat

SMS Provider

Required intent filter- android.provider.Telephony.SMS_DELIVER

- WAP_PUSH_DELIVER_ACTION.

- android.intent.action.SENDTO.

- android.intent.action.RESPOND_VIA_MESSAGE.

Page 8: Kitkat

Animation Pause

- Extending the functionality of Animator with pause and resume.

- Beside this we also have callback such AnimatorPauseListener.

Page 9: Kitkat

Immersive full-screen mode

mView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_IMMERSIVE);

Page 10: Kitkat

Translucent System bar

Child theme by extending.Theme_Holo_NoActionBar_TranslucentDecor.

Page 11: Kitkat

External Storage Access

• READ_EXTERNAL_STORAGE permission for reading shared files(getExternalStoragePublicDirectory).

• However in-case of app storage we don’t need any permission.(getExternalFilesDir)

Page 12: Kitkat

Drawable for RTL-Layout

-RTL layout introduced in ICS.-Specific drawable for RTL locale.-Can automatically be mirrored while setting.

-Drawable.setAutoMirrored(boolean b) //

Page 13: Kitkat

App Permissions

- INSTALL_SHORTCUT- UNINSTALL_SHORTCUT

Page 14: Kitkat

Special cases with regard to 4.4.0

- Expansion fileshttps://code.google.com/p/android/issues/detail?id=61881

- ACTION_GET_CONTENT and PICK Intent (PREVIOUS)content://media/external/images/media/62

(KITKAT)content://com.android.providers.media.documents/document/image:62