Code example for BluetoothAdapter

Methods: getAddress

0
        @Override 
        protected Boolean doInBackground(Void... sVoid) {
        	boolean result = true;
            try { 
            	if(debug) Log.d(DEBUG_TAG, "Starting to execute REST call!");
            	String call = RESTCaller.userStatsCall(mBtAdapter.getAddress());
                RESTCaller caller = new RESTCaller();
                restJSONObject = caller.execute(call);
            } catch (Exception e) {
            	result = false;
            } 
            return result;
        } 
         
        @Override 
        protected void onPreExecute() { 
            super.onPreExecute(); 
            if(debug) Log.d(DEBUG_TAG, "Starting UserStatsActivity UILoaderAsyncTask");
            mProgressDialog.show();
        }