DestinyDave
- Forum posts: 1
Jun 16, 2018, 10:23:44 PM via Website
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();
}
}
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.