Android Studio app under MDM / Work Profile doesn't work

  • Replies:0
DestinyDave
  • Forum posts: 1

Jun 16, 2018, 10:23:44 PM via Website

I'm trying to do a simple shortcut app, while the app works under the personal side (opens my default browser) it doesn't even start or crashes at start under MDM /Work profile

Any help making it work under work container ?

package xx.xxxx.xxxx;

import android.app.Activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;

public class MainActivity extends AppCompatActivity {
private WebView mWebView;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    mWebView = (WebView) findViewById(R.id.activity_main_webview);

    // Enable Javascript
    WebSettings webSettings = mWebView.getSettings();
    webSettings.setJavaScriptEnabled(true);

    // Request site
    mWebView.loadUrl("xxxxxxxxxx");

    // Exit launcher
    finish();

}

}

Be the first to answer