Page 583 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 583

}  catch  (NullPointerException  e) {

                            Log.e("BackRangingService",    "NullPointerException     ha  s     o  c  c  u  r  e  d     w  h  i  l  e

            executing  RECOManager.startRangingBeaconsInRegion()");

                            e.printStackTrace();

                       }

                 }

                 private  void  stopRangingWithRegion(RECOBeaconRegion  region) {


                       Log.i("BackRangingService",  "stopRangingWithRegion()");

                       try  {

                            mRecoManager.stopRangingBeaconsInRegion(region);

                       }  catch  (RemoteException  e)  {

                            Log.e("BackRangingService",  "RemoteException  has  occured  while  executing
            RECOManager.stopRangingBeaconsInRegion()");


                            e.printStackTrace();

                       }  catch  (NullPointerException  e) {

                            Log.e("BackRangingService",    "NullPointerException     ha  s     o  c  c  u  r  e  d     w  h  i  l  e
            executing  RECOManager.stopRangingBeaconsInRegion()");


                            e.printStackTrace();

                       }

                 }

            }

            import  android.app.Activity;


            import  android.bluetooth.BluetoothAdapter;

            import  android.bluetooth.BluetoothDevice;

            import  android.content.Intent;

            import  android.os.Handler;

            import  android.os.Message;




                                                         -  576  -
   578   579   580   581   582   583   584   585   586   587   588