An introduction to App shortcuts feature of android 7.1 (static and dynamic)

App shortcuts feature of android 7.1

The Android 7.1 update introduces a variety of new features and capabilities for users and developers. App shortcuts feature of Android 7.1 introduced after fantastic feature of Android 7.0 is multi-tasking. I have recently written a blog for multitasking is available here & Myself Imtiyaz Khalani (Sr, Android Developer) here for your help.

You can use the new shortcuts feature to bring users from the launcher directly to key actions within your app. Users simply long-press your app’s launcher icon to reveal the app’s shortcuts, then tap on a shortcut to jump to the associated action. These shortcuts are a great way to engage users, and they let you surface the functionality of your app even before users launch your app.check out screen shot

Two 1. Static Shortcuts:

App shortcuts feature of android 7.1

App shortcuts: Surface key actions and take users deep into your app instantly.

App shortcuts: long press on message app will show you shortcuts

let’s implement it

Adding App Static Shortcuts to your app programmatically

Read moreAn introduction to App shortcuts feature of android 7.1 (static and dynamic)

How To Deal with AsyncTask With Screen Orientation

AsyncTask With Screen Orientation

Manage AsyncTask With Screen Orientation Changes? or AsyncTask execute twice when screen orientation chaged?

Manage AsyncTask while screen orientation if you don’t manage then might be¬†AsyncTask called twice when orientation changed

Manage AsyncTask while Screen Orientation changes android.

I’ve follow below seps

STEP 1 – Lock Orientation by calling setRequestedOrientation() method

STEP2 – Once you task over set default orientation that you required

STEP 3 – add android:configChanges=”orientation” in AndroidManifest file

Read moreHow To Deal with AsyncTask With Screen Orientation