로그인폼을 PHP를 사용하지않고 text파일이나 ini로 이용해서 sd카드에 넣고
거기서 문자열을 가져와서 로그인하려는데... 안되네요 ㅠ_ㅜ
aDialog.setPositiveButton("로그인", new DialogInterface.OnClickListener() {
EditText LOGid = (EditText) findViewById(R.id.loginid);
public void onClick(DialogInterface dialog, int which) {
readText();
// //for (int i = 0; i < 4; i++) {
// Log.d("for",
// "******************for성공*****************");
// EditText LOGid = null;
// if (arr.get(0).toString().equalsIgnoreCase(LOGid.getText().toString())) {
// //if(arr.get(i).toString() == LOGid.getText().toString()){
// Log.d("if", "****************if성공**************");
// Toast.makeText(TabLayoutActivity.this, "로그인 되었습니다.",
// Toast.LENGTH_SHORT).show();
public void readText() {
try {
Log.i("124312", "sfsdfsfasfscfsd cfsearbsd");
Resources resources = getResources();
BufferedReader br = new BufferedReader(new InputStreamReader(
resources.openRawResource(R.raw.mytest0), "UTF-8"));
String readLine;
while ((readLine = br.readLine()) != null) {
arr.add(readLine + "\n");
}
br.close();
// EditText edtFile = (EditText) findViewById(R.id.edtFile);
// edtFile.setText(arr.get(0));
} catch (Exception e) {
Toast.makeText(this, "읽기 오류 : " + e, 4000).show();
}
}
이렇게 하는게 맞는지 모르겟네요 맞으면 조언좀 더주시구.. 아니면
어떻게 해야되는지좀 알려주세요 ㅠ