extra android q Flashcards
onDowngrade()
if version is newer version is lower than old versiondrop table statement, onCreate()
onDowngrade()
if version is newer version is lower than old versiondrop table statement, onCreate()
getColumnIndex(“Name”)
Find the column index
getString(int colIndex) / getInt(int colIndex)
Return the string, int, long, from that column.
moveToFirst()
Moves to the first database result
next()
moves to the next row of results
isAfterLast()
tells you if you’re past the last row of results.
SharedPreferences gets saved by
commit()
Database ContentValues get saved by
insert()
Dialog get shown by
build() -> show()
Toast get shown by
show()
ADD ** In Layout
Toolbar
API goes ??? with more features
Higher
A parameter includes :
icon, orderInCateogry, layout_height
Tag names are always the *** ones
First
Strings to override go in a **
subfolder
Bundles have ** pairs
keyValue
If put string and get string don’t match you get a:
0
default value
BaseAdapter:
getCount-> #
getItem(int i)->String i
getView(int i, view v, null)->inflate view
View v is *** off the page, passed in again to reuse memory
recycled
DB takes how many functions?
4
Phone has NO
frameLayout
Tablet has
frameLayout
If a database is opened and the version is the same as the previously created one on the device, which function will be called first:
onOpen
If a database is opened and the version is greater than the previously created one on the device, which function will be called first:
onUpgrade
sw stands for
smallest width
getColumnIndex(“Name”)
Find the column index
getString(int colIndex) / getInt(int colIndex)
Return the string, int, long, from that column.
moveToFirst()
Moves to the first database result
next()
moves to the next row of results
isAfterLast()
tells you if you’re past the last row of results.
SharedPreferences gets saved by
commit()
Database ContentValues get saved by
insert()
Dialog get shown by
build() -> show()
Toast get shown by
show()
Create a with
ITEMS
ADD ** In Layout
Toolbar
API goes ??? with more features
Higher
A parameter includes :
icon, orderInCateogry, layout_height
Tag names are always the *** ones
First
Strings to override going in a **
subfolder
Bundles have ** pairs
keyValue
If put string and get string don’t match you get a:
0
default value
BaseAdapter:
getCount-> #
getItem(int i)->String i
getView(int i, view v, null)->inflate view
View v is *** off the page, passed in again to reuse memory
recycled
DB takes how many functions?
4
Phone has NO
frameLayout
Tablet has
frameLayout
If a database is opened and the version is the same as the previously created one on the device, which function will be called first:
onOpen
If a database is opened and the version is greater than the previously created one on the device, which function will be called first:
onUpgrade
sw stands for
smallest width