Page 1002 - 3-2
P. 1002

wr.write(data);
                                wr.flush();


                                BufferedReader reader = new BufferedReader
                                                    (new InputStreamReader(conn.getInputStream()));


                                StringBuilder sb = new StringBuilder();
                                String line = null;


                                // Read Server Response
                                while ((line = reader.readLine()) != null) {
                                    sb.append(line);
                                    break;
                                }


                                Log.d(this.getClass().getName(), "php 온값: "+sb.toString());
                                return sb.toString();


                            } catch (Exception e) {
                                Log.d(this.getClass().getName(), "Exception: " + e.getMessage());
                                return new String("Exception: " + e.getMessage());
                            }
                        }
                    }
                    InsertData task = new InsertData();
                    task.execute(boxnum,username,userpassword,inuse);
                }


                private void load() {
                    class LoadData extends AsyncTask<String, Void, String> {
                        ProgressDialog loading;
                        @Override
                        protected void onPreExecute() {
                            super.onPreExecute();
                            loading = ProgressDialog.show(StorageActivity.this, "Please Wait", null, true,
            true);
                        }
                        @Override
                        protected void onPostExecute(String s) {
                            super.onPostExecute(s);
                            loading.dismiss();
                            Toast.makeText(getApplicationContext(), " 데이터를 불러왔습니다.",
                                             Toast.LENGTH_LONG).show();




                                                        - 1002 -
   997   998   999   1000   1001   1002   1003   1004   1005   1006   1007