public void onClick(View v) {
String uname=tv1.getText().toString();
String pass=tv2.getText().toString();
//String copmare=uname.concat(pass);
Cursor cur = db.query("accountTable", // Where are we looking?
new String[]{ "colProject" }, // What do we want back?
"colName = ? AND colPass = ?", // What are we matching?
new String[]{ uname, pass }, // What to put in the "holes"?
null, null, null); // Everything else default...
if (cur != null) {
cur.moveToNext();
}
return;
Intent i = new Intent(FirstAssignmentActivity.this,success.class);
i.putExtra("v1", cur.getString(0));
startActivity(i);
}
为什么我有无法访问的代码?