Skip to content

Commit

Permalink
Added second example apk
Browse files Browse the repository at this point in the history
  • Loading branch information
aperauch committed Mar 17, 2022
1 parent 1cd9270 commit 91d7819
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
Binary file added APK/android-web-demo-app-2.apk
Binary file not shown.
6 changes: 6 additions & 0 deletions APK/profile-app-config-example.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<characteristic type="com.airwatch.android.androidwork.app:com.aron.webdemo" uuid="1abc235c-03b6-4ea7-a94c-079f5a8bc123">
<parm name="INTELLIGENCE_APP_ID" value="ENTER_INTELLIENCE_APP_ID_HERE" />
<parm name="INTELLIGENCE_APP_LOGGING_LEVEL" value="DEBUG" />
<parm name="URL" value="https://www.vmware.com" />
<parm name="ENROLLMENT_USERNAME" value="{EnrollmentUser}" />
</characteristic>
Binary file modified app/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ android {
compileSdk 31

defaultConfig {
applicationId "com.aron.webdemo"
applicationId "com.aron.webdemo2"
minSdk 28
targetSdk 31
versionCode 1_1
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/java/com/aron/webdemo/WebViewActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ protected void onCreate(Bundle savedInstanceState) {
WebSettings webSettings = webView.getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setDomStorageEnabled(true);
webSettings.setAllowContentAccess(true);
webSettings.setJavaScriptCanOpenWindowsAutomatically(true);
webSettings.setAppCacheEnabled(true);
webSettings.setSupportMultipleWindows(true);
setTitle(url);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<resources>
<string name="app_name">Web Demo</string>
<string name="app_name">Web Demo 2</string>
<string name="title_activity_webview">WebviewActivity</string>
<string name="label_url">URL:</string>
<string name="default_test_url">https://www.vmware.com</string>
Expand Down

0 comments on commit 91d7819

Please sign in to comment.