kitkat

Post on 24-Jun-2015

571 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

Android KitKat featured API

TRANSCRIPT

KitKatAltaf ur Rehman

Kitkat for

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

Features API perspective

• Printing Framework

• Screen Recording

• SMS provider.

• Animation pause

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

Printing Framework

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

- At last programmatically create PrintPdfDocument.

- Possible workaround WebView.createPrintDocumentAdapter.

Screen Recording

• adb shell screenrecord

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

SMS Provider

Required intent filter- android.provider.Telephony.SMS_DELIVER

- WAP_PUSH_DELIVER_ACTION.

- android.intent.action.SENDTO.

- android.intent.action.RESPOND_VIA_MESSAGE.

Animation Pause

- Extending the functionality of Animator with pause and resume.

- Beside this we also have callback such AnimatorPauseListener.

Immersive full-screen mode

mView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_IMMERSIVE);

Translucent System bar

Child theme by extending.Theme_Holo_NoActionBar_TranslucentDecor.

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)

Drawable for RTL-Layout

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

-Drawable.setAutoMirrored(boolean b) //

App Permissions

- INSTALL_SHORTCUT- UNINSTALL_SHORTCUT

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

top related