Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Build;

public class Main {
    public static boolean isBLESupportedOnDevice(Context context) {
        return Build.VERSION.SDK_INT >= 19
                && context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE);
    }
}