/guanxin-guanxin/src/main/java/com/shunzhi/guanxin/activity/RecFeedbackActivity.java
Java | 666 lines | 575 code | 65 blank | 26 comment | 90 complexity | a8a2d1b53450f7026f06b09fe631f70e MD5 | raw file
- package com.shunzhi.guanxin.activity;
- import android.app.Activity;
- import android.app.ProgressDialog;
- import android.bluetooth.BluetoothAdapter;
- import android.bluetooth.BluetoothDevice;
- import android.bluetooth.BluetoothManager;
- import android.content.Context;
- import android.content.Intent;
- import android.content.SharedPreferences;
- import android.content.SharedPreferences.Editor;
- import android.os.Bundle;
- import android.os.Handler;
- import android.os.Message;
- import android.text.TextUtils;
- import android.view.View;
- import android.view.View.OnClickListener;
- import android.widget.ArrayAdapter;
- import android.widget.Button;
- import android.widget.EditText;
- import android.widget.LinearLayout;
- import android.widget.TextView;
- import com.alibaba.fastjson.JSON;
- import com.android.volley.Response;
- import com.android.volley.VolleyError;
- import com.shunzhi.guanxin.MyPreferences;
- import com.shunzhi.guanxin.MyVolley;
- import com.shunzhi.guanxin.R;
- import com.shunzhi.guanxin.ble.bpmonitor.BPCallBack;
- import com.shunzhi.guanxin.ble.bpmonitor.BPResult;
- import com.shunzhi.guanxin.ble.bpmonitor.BpBtService;
- import com.shunzhi.guanxin.entity.RecoveryFeedback;
- import com.shunzhi.guanxin.internet.GsonUtil;
- import com.shunzhi.guanxin.internet.MyStringRequest;
- import com.shunzhi.guanxin.internet.PostParams;
- import com.shunzhi.guanxin.utils.T;
- import com.shunzhi.guanxin.utils.TimeUtils;
- import com.shunzhi.guanxin.utils.UserUtils;
- import com.shunzhi.guanxin.views.MyToolBar;
- import com.shunzhi.guanxin.views.MyToolBar.BackClickedListener;
- import com.shunzhi.guanxin.views.MyToolBar.RightClickedListener;
- import com.shunzhi.guanxin.views.ProgressWithText;
- import com.shunzhi.guanxin.views.ProgressWithText.OnReConnectListener;
- import com.shunzhi.guanxin.views.RecFeedbackStatuRadio;
- import com.shunzhi.guanxin.views.SportFeedbackEmojiViews;
- import java.sql.Timestamp;
- import java.util.ArrayList;
- import java.util.List;
- public class RecFeedbackActivity extends BaseActivity implements OnClickListener, BackClickedListener, OnReConnectListener, BPCallBack {
- public static final String URL_GET_REC_FEEDBACK = "getRecFeedback.action";
- public static final String URL_GET_REC_FEEDBACK_BYID = "getRecFeedbackById.action";
- public static final String URL_ADD_REC_FEEDBACK = "addRecFeedback.action";
- public static final String EXTRA_FEEDBACK_ID = "feedbackId";
- // Stops scanning after 10 seconds.
- private static final long SCAN_PERIOD = 10000;
- private final int REQUEST_ENABLE_BT = 1;
- ProgressDialog mProgressDialog;
- List<String> strs = new ArrayList<String>();
- ArrayAdapter<String> adapter;
- // tag for if has submit a new Recfeedback or this week's Recfeedback
- // already submit
- private boolean ifSubmit;
- // tag for if this activity is start from RecFeedbackActivity
- private boolean ifFromList;
- private RecoveryFeedback mFeedback;
- private MyToolBar myToolBar;
- private ProgressWithText mProgressWithText;
- private EditText mBpHET;
- private EditText mBpLET;
- private EditText mBgBeforeEatET;
- private EditText mBgAfterEatET;
- private EditText mTcET;
- private EditText mTgET;
- private EditText mChdlET;
- private EditText mCldlET;
- private EditText mWeightET;
- private RecFeedbackStatuRadio mRecStatus;
- private EditText mSymptomsET;
- private EditText mSelfJudgeET;
- private SportFeedbackEmojiViews mScore;
- private TextView mBpHint1TV;
- private TextView mBpHint2TV;
- private Button mMeaureBtn;
- private LinearLayout mSubmitLL;
- private Button mSubmitBtn;
- private TextView mTimeTV;
- private ProgressDialog mMeasureDialog;
- // bp
- private boolean ifFirst = false;
- private BluetoothAdapter mBluetoothAdapter;
- private BpBtService mService;
- private Handler mHandler;
- private boolean mScanning;
- private Handler mBTHandler;
- // Device scan callback.
- private BluetoothAdapter.LeScanCallback mLeScanCallback = new BluetoothAdapter.LeScanCallback() {
- @Override
- public void onLeScan(final BluetoothDevice device, int rssi, byte[] scanRecord) {
- runOnUiThread(new Runnable() {
- @SuppressWarnings("deprecation")
- @Override
- public void run() {
- if (device.getName() != null && device.getName().startsWith("Bluetooth BP")) {
- mService.connect(device);
- mBluetoothAdapter.stopLeScan(mLeScanCallback);
- }
- }
- });
- }
- };
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- // TODO Auto-generated method stub
- super.onCreate(savedInstanceState);
- setContentView(R.layout.acitivity_recovery_feedback);
- int id = getIntent().getIntExtra(EXTRA_FEEDBACK_ID, -1);
- if (id > 0)
- ifFromList = true;
- initToolBar(ifFromList);
- initViews();
- if (-1 == id) {
- getFeedback();
- } else
- getFeedbackById(id);
- }
- private void initToolBar(boolean ifFromList) {
- myToolBar = (MyToolBar) findViewById(R.id.my_toolbar);
- myToolBar.setTitle(getString(R.string.recovery_feedback_title));
- myToolBar.setBackClickedListener(this);
- if (!ifFromList) {
- myToolBar.setRightOptionText(R.string.histroy_feedback);
- myToolBar.showRight();
- myToolBar.setRightClickedListener(new RightClickedListener() {
- @Override
- public void onRightClick() {
- // TODO Auto-generated method stub
- startActivity(new Intent(RecFeedbackActivity.this, RecFeedbackListActivity.class));
- }
- });
- }
- }
- private void initViews() {
- mProgressWithText = (ProgressWithText) findViewById(R.id.progress_with_text);
- mBpHET = (EditText) findViewById(R.id.high_bp);
- mBpLET = (EditText) findViewById(R.id.low_bp);
- mBgBeforeEatET = (EditText) findViewById(R.id.glucose_before_eat);
- mBgAfterEatET = (EditText) findViewById(R.id.glucose_after_eat);
- mTcET = (EditText) findViewById(R.id.tc);
- mTgET = (EditText) findViewById(R.id.tg);
- mChdlET = (EditText) findViewById(R.id.chdl);
- mCldlET = (EditText) findViewById(R.id.cldl);
- mWeightET = (EditText) findViewById(R.id.weight);
- mRecStatus = (RecFeedbackStatuRadio) findViewById(R.id.rec_status);
- mSymptomsET = (EditText) findViewById(R.id.other_symptom);
- mScore = (SportFeedbackEmojiViews) findViewById(R.id.self_score);
- int[] texts = new int[]{R.string.feedback_score1, R.string.feedback_score2, R.string.feedback_score3};
- mScore.setTexts(texts);
- mSelfJudgeET = (EditText) findViewById(R.id.other_self_feedback);
- mBpHint1TV = (TextView) findViewById(R.id.bp_hint1);
- mBpHint2TV = (TextView) findViewById(R.id.bp_hint2);
- mMeaureBtn = (Button) findViewById(R.id.bp_btn);
- mSubmitBtn = (Button) findViewById(R.id.submit);
- mSubmitLL = (LinearLayout) findViewById(R.id.submit_ll);
- mTimeTV = (TextView) findViewById(R.id.time);
- mProgressWithText.setReConnectListener(this);
- mMeaureBtn.setOnClickListener(this);
- mSubmitBtn.setOnClickListener(this);
- }
- @Override
- public void onReConnectListenr() {
- mProgressWithText.start();
- getFeedback();
- }
- private boolean checkValue(Float value, Timestamp validity) {
- return null != value && 0 != value && null != validity && validity.getTime() > System.currentTimeMillis();
- }
- private void setViews(RecoveryFeedback recFeedback) {
- if (checkValue(recFeedback.getTc(), recFeedback.getTcValidity()))
- mTcET.setText(recFeedback.getTc() + "");
- if (checkValue(recFeedback.getTg(), recFeedback.getTgValidity()))
- mTgET.setText(recFeedback.getTg() + "");
- if (checkValue(recFeedback.getChdl(), recFeedback.getChdlValidity()))
- mChdlET.setText(recFeedback.getChdl() + "");
- if (checkValue(recFeedback.getCldl(), recFeedback.getChdlValidity()))
- mCldlET.setText(recFeedback.getCldl() + "");
- if (checkValue(recFeedback.getWeight(), recFeedback.getWeightValidity()))
- mWeightET.setText(recFeedback.getWeight() + "");
- if (recFeedback.getDeflag()) {
- mTimeTV.setVisibility(View.GONE);
- return;
- } else
- mTimeTV.setVisibility(View.VISIBLE);
- ifSubmit = true;
- mBpHET.setText(recFeedback.getBpH() + "");
- mBpLET.setText(recFeedback.getBpL() + "");
- mBgBeforeEatET.setText(recFeedback.getBgBeforeEat() + "");
- mBgAfterEatET.setText(recFeedback.getBgAfterEat() + "");
- mRecStatus.setType(recFeedback.getStatus().shortValue());
- if (null == recFeedback.getSymptom() || 0 == recFeedback.getSymptom().trim().length())
- mSymptomsET.setVisibility(View.GONE);
- else
- mSymptomsET.setText(recFeedback.getSymptom());
- if (null == recFeedback.getComplement() || 0 == recFeedback.getComplement().trim().length())
- mSelfJudgeET.setVisibility(View.GONE);
- else
- mSelfJudgeET.setText(recFeedback.getComplement());
- mBpHint1TV.setVisibility(View.GONE);
- mBpHint2TV.setVisibility(View.GONE);
- mSubmitLL.setVisibility(View.GONE);
- mMeaureBtn.setVisibility(View.GONE);
- mBpHET.setFocusable(false);
- mBpLET.setFocusable(false);
- mBgBeforeEatET.setFocusable(false);
- mBgAfterEatET.setFocusable(false);
- mTcET.setFocusable(false);
- mTgET.setFocusable(false);
- mChdlET.setFocusable(false);
- mCldlET.setFocusable(false);
- mWeightET.setFocusable(false);
- mRecStatus.disableClick();
- mSymptomsET.setFocusable(false);
- mSelfJudgeET.setFocusable(false);
- mScore.disableClick();
- mSymptomsET.setFocusable(false);
- mSelfJudgeET.setFocusable(false);
- mTimeTV.setText("填写日期:" + TimeUtils.timestampToYMDString(recFeedback.getAddTime()));
- SharedPreferences preferences = getSharedPreferences(MyPreferences.GLOABAL_VARIBLES_PREFERENCES, Context.MODE_PRIVATE);
- Long time = preferences.getLong(MyPreferences.LAST_RECOVERY_FEEDBACk_TIME, 0);
- // 0 == time is for patient user,first login ,the time is 0
- // IfSameWeek is for relative user
- if (0 == time || !TimeUtils.ifSameWeek(time, recFeedback.getAddTime().getTime())) {
- Editor editor = preferences.edit();
- editor.putLong(MyPreferences.LAST_RECOVERY_REPORT_TIME, recFeedback.getAddTime().getTime());
- editor.commit();
- ifSubmit = true;
- }
- }
- private void getFeedback() {
- PostParams params = new PostParams();
- params.putParams("patientId", UserUtils.getPatientId(RecFeedbackActivity.this) + "");
- MyStringRequest request = new MyStringRequest(URL_GET_REC_FEEDBACK, new Response.Listener<String>() {
- @Override
- public void onResponse(String response) {
- RecoveryFeedback result = GsonUtil.getRecFeedback(response);
- if (null != result) {
- mFeedback = result;
- setViews(result);
- mProgressWithText.setVisibility(View.GONE);
- } else
- getFeedbackError();
- }
- }, new Response.ErrorListener() {
- @Override
- public void onErrorResponse(VolleyError error) {
- // TODO Auto-generated method stub
- getFeedbackError();
- }
- }, params);
- MyVolley.getInstance(RecFeedbackActivity.this).addToRequestQueue(request);
- }
- private void getFeedbackById(int id) {
- PostParams params = new PostParams();
- params.putParams("patientId", UserUtils.getPatientId(RecFeedbackActivity.this) + "");
- params.putParams("fId", id + "");
- MyStringRequest request = new MyStringRequest(URL_GET_REC_FEEDBACK_BYID, new Response.Listener<String>() {
- @Override
- public void onResponse(String response) {
- RecoveryFeedback result = GsonUtil.getRecFeedback(response);
- if (null != result) {
- mFeedback = result;
- setViews(result);
- mProgressWithText.setVisibility(View.GONE);
- } else
- getFeedbackError();
- }
- }, new Response.ErrorListener() {
- @Override
- public void onErrorResponse(VolleyError error) {
- // TODO Auto-generated method stub
- getFeedbackError();
- }
- }, params);
- MyVolley.getInstance(RecFeedbackActivity.this).addToRequestQueue(request);
- }
- private void getFeedbackError() {
- mProgressWithText.setFailed();
- }
- private void startSubmit() {
- if (TextUtils.isEmpty(mBpHET.getText().toString())) {
- mBpHET.requestFocus();
- feedbackNotComplete();
- return;
- }
- if (TextUtils.isEmpty(mBpHET.getText().toString())) {
- mBpHET.requestFocus();
- feedbackNotComplete();
- return;
- }
- if (TextUtils.isEmpty(mBpLET.getText().toString())) {
- mBpLET.requestFocus();
- feedbackNotComplete();
- return;
- }
- if (TextUtils.isEmpty(mBgBeforeEatET.getText().toString())) {
- mBgBeforeEatET.requestFocus();
- feedbackNotComplete();
- return;
- }
- if (TextUtils.isEmpty(mBgAfterEatET.getText().toString())) {
- mBgAfterEatET.requestFocus();
- feedbackNotComplete();
- return;
- }
- if (TextUtils.isEmpty(mTgET.getText().toString())) {
- mTgET.requestFocus();
- feedbackNotComplete();
- return;
- }
- if (TextUtils.isEmpty(mTcET.getText().toString())) {
- mTcET.requestFocus();
- feedbackNotComplete();
- return;
- }
- if (TextUtils.isEmpty(mChdlET.getText().toString())) {
- mChdlET.requestFocus();
- feedbackNotComplete();
- return;
- }
- if (TextUtils.isEmpty(mCldlET.getText().toString())) {
- mCldlET.requestFocus();
- feedbackNotComplete();
- return;
- }
- if (TextUtils.isEmpty(mWeightET.getText().toString())) {
- mWeightET.requestFocus();
- feedbackNotComplete();
- return;
- }
- addFeedback();
- }
- private void feedbackNotComplete() {
- T.showShort(RecFeedbackActivity.this, R.string.rec_feedback_not_complete);
- }
- private Timestamp getValidity() {
- long time = System.currentTimeMillis() + 30 * 24 * 3600 * 1000L;
- return new Timestamp(time);
- }
- private boolean ifNullFeedback() {
- return null == mFeedback || mFeedback.getDeflag();
- }
- private void addFeedback() {
- mSubmitBtn.setEnabled(false);
- if (null == mProgressDialog) {
- mProgressDialog = new ProgressDialog(RecFeedbackActivity.this);
- mProgressDialog.setTitle(null);
- mProgressDialog.setMessage(getResources().getString(R.string.rec_feedback_sumitting));
- mProgressDialog.setCancelable(false);
- }
- mProgressDialog.show();
- final RecoveryFeedback feedback = new RecoveryFeedback();
- feedback.setPatientId(UserUtils.getPatientId(getApplicationContext()));
- feedback.setBpH(Short.parseShort(mBpHET.getText().toString()));
- feedback.setBpL(Short.parseShort(mBpLET.getText().toString()));
- feedback.setBgAfterEat(Float.parseFloat(mBgAfterEatET.getText().toString()));
- feedback.setBgBeforeEat(Float.parseFloat(mBgBeforeEatET.getText().toString()));
- Float tc = Float.parseFloat(mTcET.getText().toString());
- if (ifNullFeedback() || !mFeedback.getTc().equals(tc)) {
- feedback.setTc(tc);
- mFeedback.setTc(tc);
- feedback.setTcValidity(getValidity());
- mFeedback.setTcValidity(getValidity());
- } else {
- feedback.setTc(mFeedback.getTc());
- feedback.setTcValidity(mFeedback.getTcValidity());
- }
- Float tg = Float.parseFloat(mTgET.getText().toString());
- if (ifNullFeedback() || mFeedback.getTg().equals(tg)) {
- feedback.setTg(tg);
- mFeedback.setTg(tg);
- feedback.setTgValidity(getValidity());
- mFeedback.setTgValidity(getValidity());
- } else {
- feedback.setTg(mFeedback.getTg());
- feedback.setTgValidity(mFeedback.getTgValidity());
- }
- Float chdl = Float.parseFloat(mChdlET.getText().toString());
- if (ifNullFeedback() || !mFeedback.getChdl().equals(chdl)) {
- feedback.setChdl(chdl);
- mFeedback.setChdl(chdl);
- feedback.setChdlValidity(getValidity());
- mFeedback.setChdlValidity(getValidity());
- } else {
- feedback.setChdl(mFeedback.getChdl());
- feedback.setChdlValidity(mFeedback.getChdlValidity());
- }
- Float cldl = Float.parseFloat(mCldlET.getText().toString());
- if (ifNullFeedback() || !mFeedback.getChdl().equals(cldl)) {
- feedback.setCldl(cldl);
- mFeedback.setCldl(cldl);
- feedback.setCldlValidity(getValidity());
- mFeedback.setCldlValidity(getValidity());
- } else {
- feedback.setCldl(mFeedback.getCldl());
- feedback.setCldlValidity(mFeedback.getCldlValidity());
- }
- Float weight = Float.parseFloat(mWeightET.getText().toString());
- if (ifNullFeedback() || !mFeedback.getWeight().equals(weight)) {
- feedback.setWeight(weight);
- mFeedback.setWeight(weight);
- feedback.setWeightValidity(getValidity());
- mFeedback.setWeightValidity(getValidity());
- } else {
- feedback.setWeight(mFeedback.getWeight());
- feedback.setWeightValidity(mFeedback.getWeightValidity());
- }
- // feedback.setTg(Float.parseFloat(mTgET.getText().toString()));
- // feedback.setChdl(Float.parseFloat(mChdlET.getText().toString()));
- // feedback.setCldl(Float.parseFloat(mCldlET.getText().toString()));
- // feedback.setWeight(Float.parseFloat(mWeightET.getText().toString()));
- feedback.setStatus(mRecStatus.getType());
- if (!TextUtils.isEmpty(mSymptomsET.getText().toString()))
- feedback.setSymptom(mSymptomsET.getText().toString());
- feedback.setFeeling(mScore.getFeedBack());
- if (!TextUtils.isEmpty(mSelfJudgeET.getText().toString()))
- feedback.setComplement(mSelfJudgeET.getText().toString());
- PostParams params = new PostParams();
- params.putParams("recFeedbackStr", JSON.toJSONString(feedback));
- MyStringRequest request = new MyStringRequest(URL_ADD_REC_FEEDBACK, new Response.Listener<String>() {
- @Override
- public void onResponse(String response) {
- if (null != response) {
- {feedback.setAddTime(new Timestamp(System.currentTimeMillis()));
- setViews(feedback);
- addFeedbackSuccess();
- }
- } else
- addFeedbackError();
- }
- }, new Response.ErrorListener() {
- @Override
- public void onErrorResponse(VolleyError error) {
- // TODO Auto-generated method stub
- addFeedbackError();
- }
- }, params);
- MyVolley.getInstance(getApplicationContext()).addToRequestQueue(request);
- }
- private void addFeedbackSuccess() {
- SharedPreferences varPreferences = getSharedPreferences(MyPreferences.GLOABAL_VARIBLES_PREFERENCES, Context.MODE_PRIVATE);
- SharedPreferences.Editor editor = varPreferences.edit();
- editor.putLong(MyPreferences.LAST_RECOVERY_FEEDBACk_TIME, System.currentTimeMillis());
- editor.commit();
- ifSubmit = true;
- mProgressDialog.dismiss();
- T.showShort(getApplicationContext(), R.string.rec_feedback_add_success);
- }
- private void addFeedbackError() {
- mSubmitBtn.setEnabled(true);
- mProgressDialog.dismiss();
- }
- @Override
- public void onBackClick() {
- // TODO Auto-generated method stub
- this.onBackPressed();
- }
- @Override
- public void onBackPressed() {
- // only when this is start from RecoveryPatientInfoFragment and a new
- // RecFeedback has been submitted then setResult
- if (!ifFromList && ifSubmit)
- setResult(Activity.RESULT_OK);
- super.onBackPressed();
- }
- @Override
- public void onClick(View v) {
- switch (v.getId()) {
- case R.id.submit:
- startSubmit();
- break;
- case R.id.bp_btn:
- measureStart();
- break;
- default:
- break;
- }
- }
- private void measureStart() {
- mMeaureBtn.setEnabled(false);
- initHandler();
- initBT();
- initMeasureDialog();
- }
- private void startMeasure() {
- mService.write(new byte[]{-3, -3, -6, 5, 13, 10});
- }
- private void endMeasure() {
- mService.write(new byte[]{-3, -3, -2, 6, 13, 10});
- }
- private void initMeasureDialog() {
- mMeasureDialog = new ProgressDialog(this);
- mMeasureDialog.setMessage("请确保设备已经打开");
- }
- private boolean checkMeasureDialog() {
- return null != mMeasureDialog && mMeasureDialog.isShowing();
- }
- private void initBT() {
- mBTHandler = new Handler();
- BluetoothManager bm = (BluetoothManager) getSystemService(BLUETOOTH_SERVICE);
- mBluetoothAdapter = bm.getAdapter();
- if (null == mBluetoothAdapter || !mBluetoothAdapter.isEnabled()) {
- Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
- startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);
- } else {
- scanLeDevice(true);
- }
- }
- private void initHandler() {
- this.mHandler = new Handler() {
- public void handleMessage(Message msg) {
- if (1 == msg.what) {
- BPResult result = (BPResult) msg.getData().getParcelable("result");
- if (null != result) {
- switch (result.getType()) {
- case BPResult.TYPE_MEASURING:
- if (checkMeasureDialog())
- mMeasureDialog.setMessage("正在测量");
- break;
- case BPResult.TYPE_ERROR:
- if (checkMeasureDialog())
- mMeasureDialog.setMessage("设备错误");
- break;
- case BPResult.TYPE_MEASURE_ERROR:
- if (checkMeasureDialog())
- mMeasureDialog.setMessage("测量错误");
- break;
- case BPResult.TYPE_POWER_LOW:
- if (checkMeasureDialog())
- mMeasureDialog.setMessage("电量过低");
- break;
- case BPResult.TYPE_DEVICE_SHUTTING:
- if (checkMeasureDialog())
- mMeasureDialog.setMessage("正在关机");
- break;
- case BPResult.TYPE_MEASURING_DATA:
- if (checkMeasureDialog())
- mMeasureDialog.setMessage("正在测量:" + result.getPressure());
- break;
- case BPResult.TYPE_RESULT_DATA:
- if (checkMeasureDialog())
- mMeasureDialog.setMessage("测量结果: 高血压" + result.getHbp() + " 低血压:" + result.getLbp() + " 心率: " + result.getHeartRate());
- break;
- default:
- break;
- }
- }
- }
- }
- };
- }
- @SuppressWarnings("deprecation")
- private void scanLeDevice(final boolean enable) {
- if (enable) {
- // Stops scanning after a pre-defined scan period.
- mBTHandler.postDelayed(new Runnable() {
- @Override
- public void run() {
- mScanning = false;
- mBluetoothAdapter.stopLeScan(mLeScanCallback);
- }
- }, SCAN_PERIOD);
- mScanning = true;
- mBluetoothAdapter.startLeScan(mLeScanCallback);
- } else {
- mScanning = false;
- mBluetoothAdapter.stopLeScan(mLeScanCallback);
- }
- }
- @Override
- public void connected() {
- startMeasure();
- }
- @Override
- public void connecting() {
- // TODO Auto-generated method stub
- }
- @Override
- public void disconnected() {
- // TODO Auto-generated method stub
- }
- @Override
- public void connectFailed() {
- // TODO Auto-generated method stub
- }
- @Override
- public void connectLost() {
- // TODO Auto-generated method stub
- }
- @Override
- public void stopConnection() {
- // TODO Auto-generated method stub
- }
- }