Create a easy enterprise App utilizing SQL Lite Database in Android Studio – for rookies.

This video exhibits the whole steps to create a easy Enterprise App utilizing the SQLite Database in Android Studio. It exhibits easy methods to create the App interface after which write the SQL Question and Insert instructions to play with the database. It takes a quite simple database desk instance to indicate it.

Full supply is accessible at:

Create a simple business App using SQL Lite Database in Android Studio – for beginners.

We shall be glad to listen to from you concerning any question, ideas or appreciations at:

Supply code:


bundle com.instance.mybusinessappyt.mybusinessappyoutube;

import android.content material.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

non-public EditText editTextStockName;
non-public EditText editTextQuantity;
non-public TextView textViewDisplay;

non-public myDatabaseHandle dbHandle;
non-public SQLiteDatabase myDB;

protected void onCreate(Bundle savedInstanceState) {

editTextStockName = findViewById(;
editTextQuantity = findViewById(;

textViewDisplay = findViewById(;

dbHandle = new myDatabaseHandle(this, “FirstDatabase”, null, 1);

myDB = dbHandle.getWritableDatabase();

String stringCreateTable = “CREATE TABLE firstTable(StockName TEXT, Amount INTEGER)”;
}catch (Exception e){

public void writeButton(View view){
ContentValues contentValues = new ContentValues();

contentValues.put(“StockName”, editTextStockName.getText().toString());
contentValues.put(“Amount”, Integer.parseInt(editTextQuantity.getText().toString()));
myDB.insert(“firstTable”, null, contentValues);

public void readButton(View view){

String question = “Choose * FROM firstTable WHERE StockName = ‘”+ editTextStockName.getText().toString()+”‘”;

Cursor myCursor = myDB.rawQuery(question, null);

if (myCursor.moveToFirst()){
textViewDisplay.setText(myCursor.getString(0) + ” — ” + myCursor.getString(1));
textViewDisplay.setText(“Information Not Discovered … “);




bundle com.instance.mybusinessappyt.mybusinessappyoutube;

import android.content material.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class myDatabaseHandle extends SQLiteOpenHelper {

public myDatabaseHandle(Context context, String identify, SQLiteDatabase.CursorFactory manufacturing unit, int model) {
tremendous(context, identify, manufacturing unit, model);

public void onCreate(SQLiteDatabase db) {


public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {