Android Detect WebGL Library
http://www.viralandroid.com/2020/05/detect-webgl-library.html
Android Library to easily allow you to determine device's WebGL support level
Download complete project source code from GitHub
Download
dependencies {
compile 'com.github.seanzor:detect-webgl:1.0.3'
}
Usage
As easy as:
// Trigger the check
WebGLDetector.detect(this, new OnReceiveDetectJsResult() {
@Override
public void onReceiveDetectJsResult(WebGLSupportLevel supportLevel) {
switch (supportLevel){
case UNKNOWN:
break;
case NOT_SUPPORTED:
break;
case SUPPORTED_BUT_DISABLED:
break;
case SUPPORTED:
break;
}
}
});