Create Multiple Columns ListView from JSON Data using Retrofit2 in Android Example

In this example, we will create a sample application with single activity having a ListView with custom BaseAdapter to have multi columns with data from JSON object which we will get from dummy JSON file on the server. To make real server requests we will use Retrofit2.

This example app will discuss a challenge to parse JSON Object into ListView.

Continue reading Create Multiple Columns ListView from JSON Data using Retrofit2 in Android Example

Resolved! com.google.gson.internal.LinkedTreeMap cannot be cast to

This post is a quick hack to resolve this issue if any of you facing a similar issue. In the Android application, I am using retrofit2 and okhttp3 to communicate remove services written in PHP and sending JSON data. There is an activity in which I have to show server JSON response in a ListView, but I was facing a strange issue in mapping JSON data to listview BaseAdapter which looks as below

Continue reading Resolved! com.google.gson.internal.LinkedTreeMap cannot be cast to

Add List Item in ListView Android Example

Sample Code to Add List items Dynamically in ListView Android

Continue reading Add List Item in ListView Android Example

What are Plus Code by Google?

Here in India people are facing so much trouble due to heavy rainfall and floods, due to a large area and heavy destruction by large volumes of water floods rescue operations are also facing trouble to reach internal locations for rescue operations. Today Google to help out people of Kerala gave a statement to help people stuck in internal flood ridden arear, Google told people to use Pulse Code to rescue operation helpline numbers, as there is also network problem no Internet no Wifi so that using that Pulse Code rescue people would reach out them to help.

Continue reading What are Plus Code by Google?

Show Progress Bar with Text and Title in Android

In an Android application using web services or any other operations like downloading data or any process which may take time to get completed, it is always a good social behavior to show a decent progress message. A simple loader image can’t tell much about the process going on. So here we will discuss three methods of showing progress bars.

  1. Progress Bar with loader icon and message with it.
  2. Progress Bar with loader icon, title, and message with it.
  3. Progress Bar with loader icon, title, percentage and message with it.

Continue reading Show Progress Bar with Text and Title in Android

Where to find JDK keytool ?

Following is a quick tutorial on how and where to find JAVA key tool path and how to add in Environmental path variable required to create production release of Android.

Continue reading Where to find JDK keytool ?

How to Run Background Service in Vivo Mobiles

Following are steps to Enable Background operations or Service in the background. Customized Android Operating Systems add some strict limitations on background services to boost up battery life and make the device perform better. Many mobile companies use them on customized OS like Xiaomi uses MIUI, Oppo uses ColorOS, Vivo use FuntouchOS and Huawei EMUI. But a normal user or developer sometimes face the following issues due to these optimizations in the customized OS.

Continue reading How to Run Background Service in Vivo Mobiles

How to Run Background Service in Xiaomi Mobiles

Following are steps to Enable Background operations or Service in the background. Customized Android Operating Systems add some strict limitations on background services to boost up battery life and make the device perform better. Many mobile companies use them on customized OS like Xiaomi uses MIUI, Oppo uses ColorOS, Vivo use FuntouchOS and Huawei EMUI. But a normal user or developer sometimes face the following issues due to these optimizations in the customized OS.

Continue reading How to Run Background Service in Xiaomi Mobiles

Resolved! FirebaseInstanceIdService is deprecated

So after updating the version of firebase-messaging in the build.gradle file from v17.0.0 to v17.1.0, strange things started happening…

there was a line of horror in service I used to use for messaging in my application. After some research, I landed on this page.

Let’s quickly go to updates which we need to do to get it working like before.

Continue reading Resolved! FirebaseInstanceIdService is deprecated

Android SQLite Example Application Insert Update Delete Truncate Operations

Android SQLite provides a mean for an application developer to save data locally in device memory in a structured form, which makes it very easy to read, update or delete information saved in multiple formats.

Android SQLite is the best way to save data locally in the device itself. SQLite acts as a local database for applications saving data in tradition columns rows architecture. It is suited where data is structured and repeating, for example, user data information. Here we will discuss the implementation of SQLite form beginning using API’s of android.database.sqlite package.

Continue reading Android SQLite Example Application Insert Update Delete Truncate Operations