Android Material Design Snackbar Example Kotlin

Snackbars provide lightweight feedback about an operation. They show a brief message at the bottom of the screen on mobile and lower left on larger devices. Snackbars appear above all other elements on the screen and the only one can be displayed at a time. Snakebars are one of the components of Android Material Design. … Read moreAndroid Material Design Snackbar Example Kotlin

Best Practice : Adding Cold Launch Android

Adding Cold Launch Android

What is Cold Launch Android? Cold Launch means app shows white screen when it launch. Check below images for more details for more type of app launches read Launch-Time Performance Removing white screen at launch time  before launching Create Activity Apply Startup Theme Set activity as startup activity   Creating Drawable splash_start.xml

  Create … Read moreBest Practice : Adding Cold Launch Android

Android Productflavors in gradle Configure Build Variant

Android Productflavors in gradle Configure Build Variants

What is Productflavors? Productflavors is very good Feature of gradle system.Productflavors helps you to build variant Application. Each build variant represents a different version of your app that you can build. For example, you might want to build one version of your app that’s Bronze, with a limited set of content, and another Silver which … Read moreAndroid Productflavors in gradle Configure Build Variant

Building List and Grid Layout With RecyclerView in Android using Java

Grid To List RecylerView

What Is Recycler View? In this post, We build List and Grid With RecyclerView. In Older way we were use ListView (Verticle & Horizontal) and GridView. But Material Design as google suggested we have to start Using RecyclerView. Advantage of RecyclerView is we can create list and grid by changing it’s LayoutManager Property.     Let’s understand … Read moreBuilding List and Grid Layout With RecyclerView in Android using Java

How to show Sweet Alert Dialog in android?

Sweet Alert Dialog in android

UI is one of the most important part of android application development. Use some lightly animated UI while you are developing an application. You should use this library to show sweet alert dialog in android. A user will interact with the application through your app design. If you want to design a great, functional mobile app interface, Design Principles are hugely important. Design principles (commonly called heuristics) are loose guidelines that designers can stick to in order to improve the quality of a user interface design.so use beautiful or sweet or animated dialogs in your application. Animated AlertDialog android, sweet Alertdialog, Beautiful AlertDialog android

Read moreHow to show Sweet Alert Dialog in android?

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

AdMob performs undesired auto scrolling

AdMob performs undesired auto scrolling Hello guys.! I’ve solved AdMob performs undesired auto scrolling. I start use admob in my application in between list items list auto scroll when ads loads complete. Admob View called requestFocus()  when advertised load in it. Many of us are facing this problem, when ads load successfully it will call … Read moreAdMob performs undesired auto scrolling

Parcelable protocol requires a Parcelable.Creator object called CREATOR (I do have CREATOR)

Parcelable.Creator object called CREATOR

Parcel is a serialization mechanism provided by Android. In order to write an object to a Parcel, that object should implement the interface “Parcelable“. I start implemantation with Parceble and after implemantation i got below error Parcelable protocol requires a Parcelable.Creator object called CREATOR (I do have CREATOR)

SOLUTION my dear friends you … Read moreParcelable protocol requires a Parcelable.Creator object called CREATOR (I do have CREATOR)