Android Google Chrome Not Firing After Lockscreen App
I have a lockscreen app, my activity is the first when the user hits unlock power button. I have a website link on the lockscreen-app. When the pattern-unlock is disabled , chrome
Solution 1:
I would open the web page as follows:
publicvoidOpenUrl() {
private WebView View;
View = (WebView) WebDialog.findViewById(R.id.ticketline);
View.setWebViewClient(new WebConn());
View.setScrollbarFadingEnabled(true);
View.setHorizontalScrollBarEnabled(false);
View.getSettings().setJavaScriptEnabled(true);
View.loadUrl("url to be loaded goes here");
getActivity().getSupportFragmentManager().beginTransaction().remove(this).commit();
WebDialog.show();
}
Alternatively you could try the following:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD|WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
IntentbrowserIntent=newIntent(Intent.ACTION_VIEW, Uri.parse("url goes here"));
startActivity(browserIntent);
finish();
Hope this helps :)
Solution 2:
I have got the same problem, I believe this is a bug in Chrome as other browsers, like Firefox and Opera, they work properly. But I found a workaround
Android lock screen notification is not able to open Browser on double tapping
Let me know whether this works for you or not.
Post a Comment for "Android Google Chrome Not Firing After Lockscreen App"