Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Create a simple business App using SQL Lite Database in Android Studio - for beginners.

  • Programmer World
  • 2018-05-24
  • 4283
Create a simple business App using SQL Lite Database in Android Studio - for beginners.
applicationsmartphoneappandandroidstudioASenterprisedbdatabaseSQLiteOpenHelperCursorFactoryFactorydatabase nameversionclassjavatablecolumnrowentryindexquerysqltextviewedittextbuttonattributesContentValuescontentValues.puttoStringSelectinsertupdatealterversioningargument
  • ok logo

Скачать Create a simple business App using SQL Lite Database in Android Studio - for beginners. бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Create a simple business App using SQL Lite Database in Android Studio - for beginners. или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Create a simple business App using SQL Lite Database in Android Studio - for beginners. бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Create a simple business App using SQL Lite Database in Android Studio - for beginners.

This video shows the complete steps to create a simple Business App using the SQLite Database in Android Studio. It shows how to create the App interface and then write the SQL Query and Insert commands to play with the database. It takes a very simple database table example to show it.

Complete source is available at:
https://programmerworld.co/android/cr...

We will be glad to hear from you regarding any query, suggestions or appreciations at: [email protected]

Source code:


/**************************************/

package com.example.mybusinessappyt.mybusinessappyoutube;

import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

private EditText editTextStockName;
private EditText editTextQuantity;
private TextView textViewDisplay;

private myDatabaseHandle dbHandle;
private SQLiteDatabase myDB;


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

editTextStockName = findViewById(R.id.editTextStockName);
editTextQuantity = findViewById(R.id.editTextQuantity);

textViewDisplay = findViewById(R.id.textViewDisplay);

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

myDB = dbHandle.getWritableDatabase();

try{
String stringCreateTable = "CREATE TABLE firstTable(StockName TEXT, Quantity INTEGER)";
myDB.execSQL(stringCreateTable);
}catch (Exception e){
e.printStackTrace();
}
}

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

contentValues.put("StockName", editTextStockName.getText().toString());
contentValues.put("Quantity", Integer.parseInt(editTextQuantity.getText().toString()));
myDB.insert("firstTable", null, contentValues);
}

public void readButton(View view){

String query = "Select * FROM firstTable WHERE StockName = '"+ editTextStockName.getText().toString()+"'";

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

if (myCursor.moveToFirst()){
myCursor.moveToFirst();
textViewDisplay.setText(myCursor.getString(0) + " --- " + myCursor.getString(1));
}else{
textViewDisplay.setText("Data Not Found ... ");
}

}

}
/*************************************/



/*************************************/

package com.example.mybusinessappyt.mybusinessappyoutube;

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

public class myDatabaseHandle extends SQLiteOpenHelper {


public myDatabaseHandle(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
super(context, name, factory, version);
}

@Override
public void onCreate(SQLiteDatabase db) {

}

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

}
}

/**********************************************/

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]