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 is small paid version that includes more.Gold which contents full content and functionality, and You can also build different versions of your app that target different devices, based on API level or other device variations.…

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 RecyclerView With Movie List Example then we show movie list in KeyPoints of RecyclerView RecyclerView Adapter LayoutManager ItemDecoration  RecyclerView Adapter RecyclerView Adapter is Similar to BaseAdapter that  Use in ListView Or GridView But RecyclerViewAdapter is…

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…

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…

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

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

My old layout was

My New Layout is now

it is working fine. testing with nexus 4 and Samsung galaxy s.also emulator api 23. Thanks & Regards Imtiyaz Khalani

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 are not maintain the sequence in parcel in method writeToParcel you first put String but in Constructor you take first integer it is not valid in android, I have give you code which makes correct order to…

Ubuntu is not detecting my android device

Ubuntu is not detecting my android device

Ubuntu doesn’t detect my Android Device (Install android driver Ubuntu) Hello Developers.!! I just Start Blogging and will continually update this blog and make it better. Ubuntu dose not detect your Android Device don’t worry might having problem with device rules/driver. i have provide how to solve this issue with installing driver in ubuntu. Install android driver Ubuntu Open command prompt / terminal and enter below Command

it will open file now paste below rules in opened file and save it.

this is work for me and if not…