Page 1004 - 3-2
P. 1004

Log.d(this.getClass().getName(), "box1 : "+ box1 );
                                Log.d(this.getClass().getName(), "box2 : "+ box2 );
                                Log.d(this.getClass().getName(), "box3 : "+ box3 );


                                return sb.toString();


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


                public void onActivityResult(int requestCode, int resultCode, Intent data) {
                    switch(requestCode) {
                        case REQUEST_CONNECT_DEVICE :
                            //When DeviceListActivity returns with a device to connect
                            if(resultCode == Activity.RESULT_OK) {
                                btService.getDeviceInfo(data);
                            }
                            break;
                        case REQUEST_ENABLE_BT :
                            //When the request to enable Bluetooth returns
                            if(resultCode == Activity.RESULT_OK) {
                                //Next Step
                                btService.scanDevice();
                            }
                            else {
                                Log.d(TAG, "Bluetooth is not enabled");
                            }
                            break;
                    }
                }
            }


            < FindActivity.java >
            package kr.icehs.intec.automaticvaluablesbox_0515;


            import android.app.Activity;
            import android.app.ProgressDialog;
            import android.content.Intent;
            import android.os.AsyncTask;


                                                        - 1004 -
   999   1000   1001   1002   1003   1004   1005   1006   1007   1008   1009