问题描述
我有一个锁屏应用程序,我的活动是第一次当用户点击解锁电源按钮。我对锁屏应用程序内网站的链接。当图案解锁被禁用,铬被炒鱿鱼的网站链接。但是,当我启用安全模式,用户输入他的模式后,Chrome应用程序打开,但该网站是不是被解雇。
格局锁启用
格局锁禁用
我使用的下面,以启动网站。
URL =HTTP://(任何URL)
意图I =新的意图(Intent.ACTION_VIEW);
i.setData(Uri.parse(URL));
startActivity(ⅰ);
。将很高兴得到这个解决。任何专家? :)
我想打开网页如下:
公共无效的OpenURL(){
私人的WebView查看;
查看=(web视图)WebDialog.findViewById(R.id.ticketline);
View.setWebViewClient(新WebConn());
View.setScrollbarFadingEnabled(真正的);
View.setHorizontalScrollBarEnabled(假);
View.getSettings()setJavaScriptEnabled(真)。
View.loadUrl(URL被加载那张这里);
。getActivity()getSupportFragmentManager()的BeginTransaction()删除(这).commit()。
WebDialog.show();
}
另外,您可以尝试以下方法:
<$p$p><$c$c>getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD|WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);意图browserIntent =新的意图(Intent.ACTION_VIEW,Uri.parse(URL放在这里));startActivity(browserIntent);完();希望这有助于:)
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 gets fired with the the website link. But when I enable the security pattern, after the user enters his pattern, chrome app opens but the website is not fired.
pattern-lock enabled
pattern-lock disable
I am using below, to launch the website.
url="http://(any url)"
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
Would be glad to get this solved. any experts? :)
I would open the web page as follows:
public void OpenUrl() {
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);
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("url goes here"));
startActivity(browserIntent);
finish();
Hope this helps :)
这篇关于Android的谷歌浏览器锁屏的应用程序后,没有发射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!