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

Android SQLite How to Delete Rows In Database

UPDATE: See Complete Application Example Here

Here we will delete SQLite database rows, which we inserted in previous post . For SQLite integration see this post if you are at the beginning of using the database in your application.

So as we already have application using which we can insert rows in the database.

Continue reading Android SQLite How to Delete Rows In Database

Android SQLite Insert Rows in Database

UPDATE: See Complete Application Example Here

Previous Part 1: Android SQLite: Integration.

Part 2: Insert Rows in SQLite Android App

In the previous post we worked on the integration of SQLite then we created Database and Table. Now we will Create a new Activity to insert a new row in Database.

Continue reading Android SQLite Insert Rows in Database

Android SQLite Integration

UPDATE: See Complete Application Example Here

Part 1: Android SQLite: Integration.

Next Part 2: How to Insert New Row in SQLite Database

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 Integration

How to Add Back Arrow in Android Activity

Here is a simple method to add a back arrow to other Activity to come back to MainActivity. To enter a new activity we create an Intent then start a new Activity using that intent instance using the startActivity method.

After we enter the new activity we add a listener on action bar instance to finish other activity to come back to MainActivity.

Continue reading How to Add Back Arrow in Android Activity