Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android默认浏览器未加载特定URL_Android_Url_Browser_Uri - Fatal编程技术网

Android默认浏览器未加载特定URL

Android默认浏览器未加载特定URL,android,url,browser,uri,Android,Url,Browser,Uri,我正在使用monkeyrunner进行自动化。 我正在做的脚本需要在Android默认浏览器中加载URL, 但是,当我尝试使用下面显示的URL时,浏览器未加载,并且根本无法打开浏览器 问题是,这个URL是怎么回事,为什么浏览器不工作? 长度?人物组合 顺便说一下,这个URL在桌面上工作 下面显示的是运行此URL的代码部分 device.wake() MonkeyRunner.sleep(2) device.shell('am force-stop com.google.android.brow

我正在使用monkeyrunner进行自动化。 我正在做的脚本需要在Android默认浏览器中加载URL, 但是,当我尝试使用下面显示的URL时,浏览器未加载,并且根本无法打开浏览器

问题是,这个URL是怎么回事,为什么浏览器不工作? 长度?人物组合

顺便说一下,这个URL在桌面上工作

下面显示的是运行此URL的代码部分

device.wake()
MonkeyRunner.sleep(2)
device.shell('am force-stop com.google.android.browser')
MonkeyRunner.sleep(2)
device.startActivity( component='com.google.android.browser/com.android.browser.BrowserActivity', uri=url)
MonkeyRunner.sleep(40)

谢谢

使用此代码,它对我有用

Intent intent= new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.google.nl/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CCEQFjAA&url=http://ark.com.ge/&ei=IDeoUIPUI-ik0AWa1oCIDg&usg=AFQjCNE1H_KILEGlt8o_ewzUszZUJfMV9A&sig2=Ygg8NBvIiOWFfiziSKFJKA"));
            startActivity(intent);

请发布一些您试图在应用程序中加载上述url的代码。此url具有重定向。你能发布所使用的代码吗?@Grishu嗨,问题已经编辑过了,现在包含了代码。感谢you@PassionateAndroiden您好,问题已经编辑过,现在包含代码。谢谢,这也适用于monkeyrunner吗?srh snl询问的是monkeyrunner,而不是运行android代码