| | |
| | | package io.hybird.jsbridge; |
| | | |
| | | import android.app.Activity; |
| | | import android.content.ComponentName; |
| | | import android.content.Context; |
| | | import android.content.Intent; |
| | | import android.content.SharedPreferences; |
| | | import android.os.Handler; |
| | | import android.os.Looper; |
| | |
| | | return service.clearAllAlarm(); |
| | | } |
| | | |
| | | /** |
| | | * 打开网络共享与热点设置页面 |
| | | */ |
| | | @JavascriptInterface |
| | | public void openAndroidWifiUI() { |
| | | Intent intent = new Intent(); |
| | | intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); |
| | | //打开网络共享与热点设置页面 |
| | | ComponentName comp = new ComponentName("com.android.settings", "com.android.settings.Settings$TetherSettingsActivity"); |
| | | intent.setComponent(comp); |
| | | mContext.startActivity(intent); |
| | | } |
| | | |
| | | //获取设备ip |
| | | public String readServerIp(){ |
| | | String server_ip = "127.0.0.1"; |