final Flashcards
SQL: databaseOpenHelper:
OnUpgrade()
«_space;if version is newer version is higher than old version. drop table statement, onCreate()
Greedy
finds the best language:
1) Values-EN-Rca
Match parent
size of parent
LifeCycle functions:
OnCreate(Bundle b) OnStart OnResume OnPause OnClose OnDestroy
Sharedpreference:
putstring, getstring if they don’t match you get default value not 0. are also used for saving files and such
Types of Log
Log.i Log.w Log.e Log.d Log.v
ListAdapter functions:
getCount(), getItem(), getItemId(), getView(), setOnItemClick(), setAdapter(), notifyItemsChanged()
SQL: databaseOpenHelper:
OnCreate()
«_space;SQL Creation statement
Log.i
informational messages
Android is
android is linux,
APK
zip file that has xml, java, png, jpg
Root tag
first tag being declared (not xml version tag), android.support.constraintlayout…
Android uses
android uses java and xml
FindViewById
returns null if not found in the layout.
Log.d
debug messages
SQL: databaseOpenHelper:
OnOpen()
«_space;all cases calls this
Toolbar items have what
Items have an Id, orderInCategory, icon, showAsAction
Log.w
warning messages
Parameter
id, layout_width etc.
XML is
case sensitive, well formed, must have closing tags.
toolbar showAsAction
showAsAction can be: always(always be icon), never(be text) or if room(text)
Log.v
verbose messages
Logging levels:
info, error, debug, verbose
What does Bundle return?
Bundle returns 0 or null
- Bananas
- apples