Page 118 - 3-2
P. 118
// Safe button click event
public void onbtn_btnOwnerNonCheckClicked(View view) {
// deleting product in background thread
btnnope.setBackgroundColor(Color.RED);
btnnope.setTextColor(Color.WHITE);
Intent intent = new Intent(getApplicationContext(), MainActivity.class);
startActivity(intent);
Log.d(" 여긴가","owner_1, NO 눌렀으니까 원래화면으로 돌아감");
}
class SigninActivity_owner_table3_create extends AsyncTask<String, String, String> {
private TextView statusField;
@Override
protected String doInBackground(String[] arg0) {
try {
String link = "http://192.168.0.85/owner_table3_create.php";
URL url = new URL(link);
Log.d(" 여긴가", "owner_1-1");
HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
Log.d(" 여긴가", "owner_1-2");
BufferedReader in = new BufferedReader(new
InputStreamReader(urlConnection.getInputStream()));
Log.d(" 여긴가", "owner_1-3");
StringBuffer sb = new StringBuffer("");
String line = "";
Log.d(" 여긴가", "owner_1-4");
while ((line = in.readLine()) != null) {
Log.d(" 여긴가", "owner_1-5");
sb.append(line);
Log.d(sb.toString(), "created result");
Log.d(" 여긴가", "owner_1-6");
Log.d(" 여긴가", sb.toString());
break;
}
in.close();
Log.d(" 여긴가", "1-7");
Intent go = new Intent(getApplicationContext(), MainActivity_owner_list.class);
- 118 -