合肥师范android实验报告实验五
实验报告
课程名称:移动设备平台开发
院系:计算机学院
专业班级:软件工程
学号:
学生姓名:
开课时间:2017至2018学年第一学期
合肥师范学院计算机学院
《移动设备平台开发》课程验证性实验报告
String sql="select * from user where username=? and password=?";
Cursor cursor=db.rawQuery(sql, new
String[]{usernameString,passwordString});
if(cursor.moveToFirst()==true){
setContentView(https://www.360docs.net/doc/3818431172.html,yout.welcome_main);
cursor.close();
}else
{
Toast.makeText(getApplicationContext(), "登录失败",
Toast.LENGTH_LONG).show();
}
}
});
}
5、实验现象、实验数据记录:
(1)注册界面:
(2).登录页面
(3).成功页面
6、实验结论:
(1)本次实验理解了界面中图片的使用方法;(2)知道了s qlite的基本使用方法(增删改查)。
相关主题