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

Change Version Number of App in Android Studio v 3.1

Following method is to change the version number of application in Android Studio V 3.1 using settings. There are two methods we can follow, let’s have a look at both:

Continue reading Change Version Number of App in Android Studio v 3.1

Lenovo – Enable VT-x in BIOS

Most probably you may have encountered VT-x disabled issue during Android Emulator Installation. VT-x is Virtualization Technology which allows PC platforms to run multiple applications and operating systems simultaneously blah blah…

This procedure is for Lenovo for other It may be a similar process.

Let’s enable it

Continue reading Lenovo – Enable VT-x in BIOS

RESOLVED! Shared Preference Context Error

During android development, especially for a beginner like me the creepiest thing which I felt was Handling Contexts. Shared preferences is really a cool thing if we want to save some handy information by the user on a device even if an app is killed. BUT context exceptions are everywhere.

So here we will not go deep into context understanding or preferences documentations. We will only discuss the best approach to use Shared Preference in application from anywhere inside your app. Using this method you can SET or GET preference literally from anywhere

– Mainactivity
– Non-Mainactivity
– Services
– Broadcasts

Continue reading RESOLVED! Shared Preference Context Error

Make Quick HTTP Calls from Android Using Volley

In general practice an Android developer use “HttpURLConnection” to use web services and do ant data communication over the internet. Its bit confusing as it gives an error to handle threads and Async tasks. So it makes the process too long cumbersome.

For quickly using data communication I prefer Volley library of android. Let’s learn more about it.

Continue reading Make Quick HTTP Calls from Android Using Volley