BluetoothIntentActivity.java :  » Blog-Twitter » droidsensor » com » example » bluetooth » Android Open Source

Android Open Source » Blog Twitter » droidsensor 
droidsensor » com » example » bluetooth » BluetoothIntentActivity.java
package com.example.bluetooth;

import android.app.Activity;
import android.os.Bundle;

public class BluetoothIntentActivity extends Activity {

  private BluetoothBroadcastReceiver _receiver;

  @Override
  protected void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);
    _receiver = new BluetoothBroadcastReceiver();
    _receiver.registerSelf(BluetoothIntentActivity.this);
  }

  @Override
  protected void onDestroy() {

    super.onDestroy();
    _receiver.unregisterSelf(BluetoothIntentActivity.this);
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.