You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
errMsg="Failed to connect to Dynamsoft License Server: network connection error. Check your Internet connection or contact Dynamsoft Support (support@dynamsoft.com) to acquire an offline license.";
Copy file name to clipboardExpand all lines: 1.hello-world/14.read-video-webview/android/app/src/main/java/com/dynamsoft/javascript/readvideowebview/DBRWebViewHelper.java
Copy file name to clipboardExpand all lines: 1.hello-world/14.read-video-webview/android/app/src/main/java/com/dynamsoft/javascript/readvideowebview/MainActivity.java
+19-39Lines changed: 19 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -11,37 +11,36 @@
11
11
importandroid.webkit.WebChromeClient;
12
12
importandroid.webkit.WebView;
13
13
importandroid.webkit.WebViewClient;
14
-
importandroid.widget.Button;
15
-
importandroid.widget.Toast;
14
+
importandroidx.core.app.ActivityCompat;
15
+
importandroidx.core.content.ContextCompat;
16
16
17
17
publicclassMainActivityextendsAppCompatActivity {
18
+
staticintCamera_Permission_Request_Code = 32765;
18
19
WebViewmWebView;
19
-
DBRWebViewHelperdbrWebViewHelper;
20
-
ButtonmButton;
21
20
22
-
@SuppressLint("ShowToast")
23
21
@Override
24
22
protectedvoidonCreate(BundlesavedInstanceState) {
25
23
super.onCreate(savedInstanceState);
26
24
setContentView(R.layout.activity_main);
27
-
mButton = findViewById(R.id.myButton);
28
-
29
-
// In order to avoid conflicts, you can use the following code to set the request code for requesting camera permission before you pollute
0 commit comments