Example usage for android.content.pm PackageManager FEATURE_EMBEDDED

List of usage examples for android.content.pm PackageManager FEATURE_EMBEDDED

Introduction

In this page you can find the example usage for android.content.pm PackageManager FEATURE_EMBEDDED.

Prototype

String FEATURE_EMBEDDED

To view the source code for android.content.pm PackageManager FEATURE_EMBEDDED.

Click Source Link

Document

Feature for #getSystemAvailableFeatures and #hasSystemFeature : This is a device for IoT and may not have an UI.

Usage

From source file:com.commonsware.android.bluetooth.rxecho.RosterFragment.java

private boolean isThing() {
    return (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O
            && (getActivity().getPackageManager().hasSystemFeature(PackageManager.FEATURE_EMBEDDED)));
}