Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.lang.reflect.Method;
import android.bluetooth.BluetoothDevice;
import android.util.Log;

public class Main {
    static public boolean removeBond(Class btClass, BluetoothDevice btDevice) throws Exception {
        Log.d("lxh", " obd bluetooth removeBond");
        Method removeBondMethod = btClass.getMethod("removeBond");
        Boolean returnValue = (Boolean) removeBondMethod.invoke(btDevice);
        return returnValue.booleanValue();
    }
}