05 APR 2020

sqlite activity-result

andy4

sqlite370_banner

SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine. SQLite is the most used database engine in the world. SQLite is built into all mobile phones and most computers and comes bundled inside countless other applications that people use every day

Android SQLite is the mostly preferred way to store data for android applications. For many applications, SQLite is the apps backbone whether it’s used directly or via some third-party wrapper

SQLiteOpenHelper

A helper class to manage database creation and version management. You create a subclass implementing onCreate(SQLiteDatabase), onUpgrade(SQLiteDatabase, int, int) and optionally onOpen(SQLiteDatabase), and this class takes care of opening the database if it exists, creating it if it does not, and upgrading it as necessary. Transactions are used to make sure the database is always in a sensible state.

… full article

Activity result

Starting another activity, whether one within your app or from another app, doesn’t need to be a one-way operation. You can also start another activity and receive a result back. For example, your app can start a camera app and receive the captured photo as a result. Or, you might start the Contacts app in order for the user to select a contact and you’ll receive the contact details as a result.

… full article

more topics covered:

  • sqLiteDatabase- execSQL
  • sqLiteDatabase- rawQuery
  • sqLiteDatabase- helper methods (i.e. insert)
  • startActivityForResult
  • onActivityResult

Links:

Leave a comment

Design a site like this with WordPress.com
Get started