Page 98 - 3-2
P. 98

@Override
                    protected String doInBackground(String[] arg0) {


                        try{
                            Log.d(" 여긴가", "owner_10.8_try  들어옴");
                            String link = "http://192.168.0.85/del_all_table2_3_4.php";


                            URL url = new URL(link);


                            HttpURLConnection urlConnection = (HttpURLConnection)url.openConnection();
                         BufferedReader in = newBufferedReader(newInputStreamReader(urlConnection.getInputStream()));


                            StringBuffer sb = new StringBuffer("");
                            String line="";


                            while ((line = in.readLine()) != null) {
                                sb.append(line);
                                Log.d(sb.toString(),"created result");
                                break;
                            }


                            in.close();
                            Log.d(" 여긴가", "9.7_del_all_table3,  완료");




                            Intent intent = new Intent(getApplicationContext(),MainActivity.class);
                            Log.d(" 여긴가", "9.888_ 처음화면으로 돌아감");
                            startActivity(intent);


                            return sb.toString();
                        } catch(Exception e){
                            Log.d(" 여긴가", "9.8_del_all_table3,  완료못함");
                            return new String("Exception: " + e.getMessage());
                        }
                    }


                }




                private class ReadMifareClassicTask extends AsyncTask<Void, Void, Void> {


                    /*
                    MIFARE Classic tags are divided into sectors, and each sector is sub-divided into
            blocks.


                                                         - 98 -
   93   94   95   96   97   98   99   100   101   102   103