Android SimpleCursorAdapter results not displaying in AlertDialog

别来无恙 提交于 2019-12-04 21:06:06

Are you sure R.id.tvDBViewRow is the id of the TextView in the layout android.R.layout.simple_spinner_item ? From this, the TextView's id should be android.R.id.text1.

So new answer for the second issue :)

I think you should reuse the initial cursor instead of trying to get a new one... Can you try to do :

adapterDenomination.moveToPosition(which);
strDenomination_id = adapterDenomination.getString(0);

in the onClick() ?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!