全文预览

物联网应用开发论文

上传者:火锅鸡 |  格式:doc  |  页数:19 |  大小:923KB

文档介绍
tion(p); uid=hm.get("uid").toString(); returnfalse; } }); }?publicvoidshowList(Stringsql){ //TODOAuto-generatedmethodstub SimpleAdapteradp=newSimpleAdapter(context,mydb.showUserList(sql,null),R.layout.activity_guan,newString[]{"uid","uname","uage","uq","us"},newint[]{R.id.uidtv,R.id.unametv,R.id.uagetv,R.id.uqtv,R.id.ustv});?getListView().setAdapter(adp); }?publicbooleanonContextItemSelected(MenuItemitem){ if(item.getItemId()==itemId1) { AlertDialog.Builderbuilder=newBuilder(context); LayoutInflaterinf=getLayoutInflater(); updView=inf.inflate(R.layout.update,(ViewGroup)findViewById(R.id.updlayout)); builder.setView(updView); builder.setTitle("修改用户"); Cursorcur=mydb.getReadableDatabase().rawQuery("select*fromusersswhereuid=?",newString[]{uid}); cur.moveToNext(); Stringname=cur.getString(1);

收藏

分享

举报
下载此文档