BluetoothChecker.java :  » Remote » premotedroid » org » pierre » remotedroid » client » bluetooth » Android Open Source

Android Open Source » Remote » premotedroid 
premotedroid » org » pierre » remotedroid » client » bluetooth » BluetoothChecker.java
package org.pierre.remotedroid.client.bluetooth;

public class BluetoothChecker
{
  private static boolean available;
  
  static
  {
    try
    {
      Class.forName("android.bluetooth.BluetoothAdapter");
      
      available = true;
    }
    catch (ClassNotFoundException e)
    {
      available = false;
    }
  }
  
  public static boolean isBluetoohAvailable()
  {
    return available;
  }
}
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.