extra android q Flashcards

1
Q

onDowngrade()

A

if version is newer version is lower than old versiondrop table statement, onCreate()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

onDowngrade()

A

if version is newer version is lower than old versiondrop table statement, onCreate()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

getColumnIndex(“Name”)

A

Find the column index

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

getString(int colIndex) / getInt(int colIndex)

A

Return the string, int, long, from that column.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

moveToFirst()

A

Moves to the first database result

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

next()

A

moves to the next row of results

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

isAfterLast()

A

tells you if you’re past the last row of results.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

SharedPreferences gets saved by

A

commit()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Database ContentValues get saved by

A

insert()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Dialog get shown by

A

build() -> show()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Toast get shown by

A

show()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

ADD ** In Layout

A

Toolbar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

API goes ??? with more features

A

Higher

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A parameter includes :

A

icon, orderInCateogry, layout_height

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Tag names are always the *** ones

A

First

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Strings to override go in a **

A

subfolder

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Bundles have ** pairs

A

keyValue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

If put string and get string don’t match you get a:

A

0

default value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

BaseAdapter:

A

getCount-> #
getItem(int i)->String i
getView(int i, view v, null)->inflate view

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

View v is *** off the page, passed in again to reuse memory

A

recycled

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

DB takes how many functions?

22
Q

Phone has NO

A

frameLayout

23
Q

Tablet has

A

frameLayout

24
Q

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:

25
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
26
sw stands for
smallest width
27
getColumnIndex("Name")
Find the column index
28
getString(int colIndex) / getInt(int colIndex)
Return the string, int, long, from that column.
29
moveToFirst()
Moves to the first database result
30
next()
moves to the next row of results
31
isAfterLast()
tells you if you’re past the last row of results.
32
SharedPreferences gets saved by
commit()
33
Database ContentValues get saved by
insert()
34
Dialog get shown by
build() -> show()
35
Toast get shown by
show()
36
Create a with
ITEMS
37
ADD ** In Layout
Toolbar
38
API goes ??? with more features
Higher
39
A parameter includes :
icon, orderInCateogry, layout_height
40
Tag names are always the *** ones
First
41
Strings to override going in a **
subfolder
42
Bundles have ** pairs
keyValue
43
If put string and get string don't match you get a:
0 | default value
44
BaseAdapter:
getCount-> # getItem(int i)->String i getView(int i, view v, null)->inflate view
45
View v is *** off the page, passed in again to reuse memory
recycled
46
DB takes how many functions?
4
47
Phone has NO
frameLayout
48
Tablet has
frameLayout
49
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
50
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
51
sw stands for
smallest width