EditText editText4 = (EditText)this.findViewById(R.id.editText4);

EditText editText3 = (EditText)this.findViewById(R.id.editText3);


String selectIdStr = editText4.getText().toString();

         int selectId = Integer.parseInt(selectIdStr);

         

         Cursor cursor = dbhandler.select(selectId);

         String name = cursor.getString(cursor.getColumnIndex("car_name"));

         Toast.makeText(this, "값 " + name, Toast.LENGTH_LONG).show();

         

         if(editText3.equals(name)){

        Intent intent1 = new Intent(this,ExamNetworkActivity.class);

startActivity(intent1);

         }

       cursor.close(); 



이렇게 구현을 했는데요


예를 들어 editText4에 3을 넣으면 데이터베이스에서 3번째 있는 값이 토스트로 뜹니다.


문제는


editText4에 3을 넣고 그값이 무엇인지를 알았으니 editText4에 나온 값을 넣고

그것이 맞으면 다음페이지로 넘어가는 것을 하고싶습니다.

이렇게하면 로그인 구현을 할 수 있을 것 같은데요,,


도와주세요~ㅜ.ㅜ