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?

A

4

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:

A

onOpen

25
Q

If a database is opened and the version is greater than the previously created one on the device, which function will be called first:

A

onUpgrade

26
Q

sw stands for

A

smallest width

27
Q

getColumnIndex(“Name”)

A

Find the column index

28
Q

getString(int colIndex) / getInt(int colIndex)

A

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

29
Q

moveToFirst()

A

Moves to the first database result

30
Q

next()

A

moves to the next row of results

31
Q

isAfterLast()

A

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

32
Q

SharedPreferences gets saved by

A

commit()

33
Q

Database ContentValues get saved by

A

insert()

34
Q

Dialog get shown by

A

build() -> show()

35
Q

Toast get shown by

A

show()

36
Q

Create a with

A

ITEMS

37
Q

ADD ** In Layout

A

Toolbar

38
Q

API goes ??? with more features

A

Higher

39
Q

A parameter includes :

A

icon, orderInCateogry, layout_height

40
Q

Tag names are always the *** ones

A

First

41
Q

Strings to override going in a **

A

subfolder

42
Q

Bundles have ** pairs

A

keyValue

43
Q

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

A

0

default value

44
Q

BaseAdapter:

A

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

45
Q

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

A

recycled

46
Q

DB takes how many functions?

A

4

47
Q

Phone has NO

A

frameLayout

48
Q

Tablet has

A

frameLayout

49
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:

A

onOpen

50
Q

If a database is opened and the version is greater than the previously created one on the device, which function will be called first:

A

onUpgrade

51
Q

sw stands for

A

smallest width