Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android webview can not open a url but browser of mobile can open it

I can not load url of

http://s.click.taobao.com/t?e=zGU34CA7K%2BPkqB07S4%2FK0CITy7klxn%2F7bvn0ayzZySqVssDl3gbF6MnYRKHHUdcB3aJvSsy9BYnoGzvR6KxV8lKdtva8B8jzzIkjsGKfqPZV6Xsb0GvL9dwnAjjjJo%2FBmPilqOqPAb4WJjL3C5sjoaZ1gW%2FGA%2B8RO92rSapI&pid=mm_23353219_0_0&spm=2014.21047752.2.0

but I can open "http://www.google.com" with the same code.

and the browser of mobile can open it.

need help.

thank you.

like image 332
getfile1 Avatar asked Sep 22 '12 11:09

getfile1


1 Answers

Try to add

wv.getSettings().setJavaScriptEnabled(true);

before loading the URL

like image 91
Nick Avatar answered Sep 24 '22 13:09

Nick