单项选择题以下操作中哪一项能够使SQLite数据库的SQLiteOpenHelper类自动调用它的onUpgrade()方法?()

A.在每次新建DatabaseHelper对象时
B.用DatabaseHelper调用getReadableDatabase()方法时
C.在每次调用SqliteDatabase的getWritableDatabase()方法时
D.当创建DatabaseHelper对象时,数据库版本参数发生变化时


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题自定义适配器的方法中,重写()方法返回创建的列表视图。

A.getView()方法
B.getCount()方法
C.getItemId()方法
D.getItem()方法

2.单项选择题BaseAdpter的public View getView()方法的哪个参数可以回收复用滑出listview的视图?()

A.int position
B.View convertView
C.ViewGroup parent
D.以上都不是

3.单项选择题要在确认对话框的确认按钮中响应,要注册()监听器。

A.AdapterView.OnItemLongClickListener
B.DialogInterface.OnClickListener()
C.View.OnClickListener()
D.AbsListView.OnScrollListener()

4.单项选择题长按列表项,要注册()监听器。

A.AdapterView.OnItemLongClickListener
B.DialogInterface.OnClickListener()
C.View.OnClickListener()
D.AbsListView.OnScrollListener()

5.单项选择题要在确认对话框的确认按钮中响应,要调用()方法。

A.setTitle()方法
B.setMessage()方法
C.setPositiveButton()方法
D.以上都不是

6.单项选择题自定义适配器从以下哪个类继承?()

A.ArrayAdapter
B.SimpleAdapter
C.BaseAdapter
D.ListAapter

7.单项选择题android中要显示对话框,要定义哪个类?()

A.AlertDialog.Builder
B.AlertDialog
C.Button
D.Dialog

8.单项选择题Fragment中如何获取Activity的实例?()

A.在Fragment的onCreate()方法获取
B.Fragment不能获取
C.在Fragment的onAttach()方法获取
D.Fragment中有指向Activity的实例