Tag Archives: moveToFirst

CRUD Operations in SQLite using SQLiteOpenHelper – Android

We do SQLite operations in Android by extending the SQLiteOpenHelper Class. I will create an Employee table with three fields id name company. I have a model class same as the database table Employee. Employee.java Lets see How we can do the CRUD (Create, Read, Update and Delete) Operations. CREATE We create a class that extends the SQLiteOpenHelper.… Read More »

How to store an Image from Android to a SQlite and retrieve it?

Hello all… In today’s post I will show you how to store an image in an SQLite database and retrieve it. First I will just create a Database Helper Class for adding and reading from the Database. Our Database contains only one table “Images” with two columns “id” and “image”. Note : If you want to see the… Read More »

How to delete a contact in android?

Hello all previously I have shown how to list all contacts in your phone and in another post I showed how to programatically create a contact in android. In today’s tutorial I will show you how to delete a contact in android programatically. This simple code does that.

Select an Image from gallery in ANDROID and show in an ImageView.

Hi all In this tutorial I will show you how to get an image from your phone gallery and show it in an imageview.Here we use intents to open up the image gallery and get the image URI. Steps : Set the image type as “image” to get only the images. on onActivityResult if the result is OK,… Read More »