包含一些工具类,方便应用开发和使用 Skyworth VR 设备中特定的系统服务, 支持以下功能
Contains some helper classes to facilitate application development and using of specific system services in Skyworth VR devices, which support the following functions
- ApkUtils
- AppUtils
- BatteryUtils
- BluetoothUtils
- BrightnessUtils
- DeviceUtils
- FotaUtils
- ProximitySensorUtils
- StorageUtils
- TimeUtils
- VolumeUtils
- WifiDisplayUtils
- WifiUtils
依赖应用:com.ssnwt.vr.server(V901 2.0.0版本、S802 2.0.0版本)
Dependent applications: com.ssnwt.vr.server (v901 2.0.0, S802 2.0.0)
如果是从老版本升级到2.0.0,需要使用svr_plugin_android_api.aar替换svr_plugin_android_interface.aar,并删除以下文件:
If you are upgrading from the old version to 2.0.0, you need to use svr_plugin_android_api.aar replaces svr_plugin_android_interface.aar and delete the following file:
skybluetoothapi.aar
skyupgrade.jar
slf4j-api-1.7.25.jar
zt-zip-1.14.jar
public class MainActivity extends AppCompatActivity {
AndroidInterface androidInterface;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
androidInterface = AndroidInterface.getInstance();
androidInterface.init(getApplication());
androidInterface.getWifiUtils().setListener2(new WifiUtils.WifiListener2() {
@Override public void onOpened(boolean b) {
}
@Override public void onConnecting(int i, String s) {
}
@Override public void onSearchResult(ArrayList<WifiInfo> arrayList) {
}
@Override public void onRssiLevelChanegd(int i) {
}
});
}
@Override protected void onDestroy() {
super.onDestroy();
androidInterface.release();
}
}
具体信息请阅读开发者文档
Please read the developer documentation for details