My code to open url in browser is
private void openBrowserUrl(String url) {
Intent i = new Intent(Intent.ACTION_VIEW);
System.out.println("============Url==================" + url);
i.setData(Uri.parse(url));
startActivity(i);
unlock(UNLOCK_TO_HOME);
}
Above is working fine when there is no pattern lock.
But When I tried to open browser after pattern lock, url value remain blank.
I have custom lock screen in my application.. When phone is locked, after that, I tried to unlock the phone at that time custom lock screen is opened by my application. and in that I have written this code. I got url value and it successfully passes to browser.
But, I tried with above process with patter lock(default lock system of android)
then the flow is
custom lock screen-->open url code(got the url value)-->default pattern lock-->browser without url value.
In above flow, when pattern lock is there, browser unable to get url which I have passed.
0 comments:
Post a Comment