Found 2041 Articles for Mobile Development

How to save data using sqlite in android?

Vrundesha Joshi
Updated on 30-Jul-2019 22:30:25

2K+ Views

Before getting into example, we should know what sqlite data base in android is. SQLite is an opensource SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to access this database, you don't need to establish any kind of connections for it like JDBC, ODBC etc.This example demonstrates How to save data using sqlite in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a ... Read More

How to filter data using where Clause and “IS NOT” in Android sqlite?

Jennifer Nicholas
Updated on 30-Jul-2019 22:30:25

136 Views

Before getting into an example, we should know what SQLite database in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built-in SQLite database implementation. SQLite supports all the relational database features. In order to access this database, you don't need to establish any kind of connections for it like JDBC, ODBC etc.This example demonstrates How to filter data using where Clause and “IS NOT” in Android SQLite.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all ... Read More

How to encrypt password and store in Android sqlite?

Nishtha Thakur
Updated on 30-Jul-2019 22:30:25

1K+ Views

Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to access this database, you don't need to establish any kind of connections for it like JDBC, ODBC etc.This example demonstrate about How to encrypt pass word and store in Android sqliteStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required ... Read More

How to filter data using where Clause and “AND” in Android sqlite?

Nitya Raut
Updated on 30-Jul-2019 22:30:25

126 Views

Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to access this database, you don't need to establish any kind of connections for it like JDBC, ODBC etc.This example demonstrates How to filter data using where Clause and “AND” in Android sqlite.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all ... Read More

How to drop table in Android sqlite?

Vrundesha Joshi
Updated on 30-Jul-2019 22:30:25

2K+ Views

Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to access this database, you don't need to establish any kind of connections for it like JDBC, ODBC etc.This example demonstrates How to drop table in Android sqlite.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a ... Read More

How to check cursor array list is empty or not in Android sqlite?

Anvi Jain
Updated on 30-Jul-2019 22:30:25

506 Views

Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to access this database, you don't need to establish any kind of connections for it like JDBC, ODBC etc.This example demonstrate about How to check cursor array list is empty or not in Android sqlite.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and ... Read More

How to write an image file in internal storage in android?

Vrundesha Joshi
Updated on 30-Jul-2019 22:30:25

5K+ Views

This example demonstrates How to write an image file in internal storage in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. In the above code, we have taken a button. When user click on button, It will store data in internal storage.Step 3 − Add the following code to src/MainActivity.javapackage com.example.andy.myapplication; import android.content.Context; import android.content.ContextWrapper; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.Button; import ... Read More

How to change date and time format in Android sqlite?

Smita Kapse
Updated on 30-Jul-2019 22:30:25

516 Views

Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to access this database, you don't need to establish any kind of connections for it like JDBC, ODBC etc.This example demonstrate about How to change date and time format in Android sqliteStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required ... Read More

How to write an image file in external storage with runtime permission in android?

Vrundesha Joshi
Updated on 30-Jul-2019 22:30:25

967 Views

This example demonstrates How to write an image file in external storage with runtime permission in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     In the above code, we have taken a button. When user click on button, it will store data in external storage.Step 3 − Add the following code to src/MainActivity.javapackage com.example.andy.myapplication; import android.annotation.TargetApi; import android.content.pm.PackageManager; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.os.Build; import android.os.Bundle; ... Read More

How to read an image file in internal storage in android?

Nitya Raut
Updated on 30-Jul-2019 22:30:25

3K+ Views

This example demonstrates How to read an image file in internal storage in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.         In the above code, we have taken a button and image view. When user click on button, it will take an image from internal storage and append to image view.Step 3 − Add the following code to src/MainActivity.javapackage com.example.andy.myapplication; import android.content.Context; import android.content.ContextWrapper; import android.graphics.drawable.Drawable; import android.os.Bundle; ... Read More

Advertisements