0
我是新来的android,我正在开发一个应用程序,我必须从服务器获取数据需要存储在sqlite中的数据,所以每次我不应该击中服务器,当我想从数据库中获取,在这个应用程序我使用片段概念,当我在多自动完成文本视图中输入单个字符时,它基于json
响应中的名称,它需要显示与该字符在下拉列表中匹配的电子邮件ID。我做了代码没有得到错误,但没有得到预期的结果textview
如何显示multiautocomplete textview中的json数据?
当我调试代码下面的代码块没有执行我不知道什么是这个问题,你可以帮我任何一个
new Handler().post(new Runnable() {
public void run() {
Cursor cursor = contactDataSource.getAllData();
if (BuildConfig.DEBUG)
Log.d(TAG, "total contcat count :" + cursor.getCount());
while (cursor.moveToNext()) {
if (BuildConfig.DEBUG)
Log.d(TAG,
"Contact from cursor:"
+ cursor.getString(cursor
.getColumnIndex(ExistingContactTable.COL_NAME)));
}
customAdapter = new CustomContactAdapter(getActivity(), cursor);
Log.i("Custom contact adapter", "" + customAdapter);
if (customAdapter != null)
editorIdSharableEmail.setAdapter(customAdapter);
}
});