没有Chrome浏览器的Google TV模拟器? [英] Google TV emulator without chrome browser?

查看:208
本文介绍了没有Chrome浏览器的Google TV模拟器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正常情况下,在启用了KVM的Linux计算机上的Google TV模拟器上没有Google Chrome浏览器?
当从我的应用程序启动一个网页时启动一个 Intent
我得到错误信息找不到活动处理意图{act = android.intent.action.VIEW,dat = http:// ...}并且我尝试了几个网址。
我的活动代码是这样的,它可以在其他Android平台上正常工作:

Is it normal not to have the Google Chrome browser on a google TV emulator in a Linux machine with KVM enabled? When launching an Intent from my application that hits a web page, I get the error message "No activity found to handle intent {act=android.intent.action.VIEW, dat=http://...}" and I have tried several web addresses. The code from My Activity is this and it works fine in other android platforms:

Intent myIntent= new Intent(Intent.ACTION_VIEW,
                           Uri.parse( "http://www.test.com");
startActivity(myIntent);

我错过了安装Google Chrome浏览器的一些步骤吗?另一方面我也找不到Google Market应用程序。

Am I missing some step to install the Google Chrome browser? On the other hand I can not find the Google Market application neither.

推荐答案

不幸的是,Chrome浏览器并没有与模拟器一起安装,这是很正常的做法。不知道是否有计划在将来将Chrome添加到模拟器,但同时可以将Browser.apk(Android浏览器)安装到模拟器(通过adb install Browser.apk,您可以从AOSP,或可能从设备或标准Android模拟器拉动通过adb拉/system/app/Browser.apk - 我认为这是d设备上的默认浏览器位置)。

Sadly it is normal not to have the Chrome browser installed with the emulator. This does make it a bit of a pain to do things like you are trying currently. I'm not sure if there are plans for adding Chrome to the emulator in the future, but in the meantime it is possible to install Browser.apk (the Android browser) to the emulator (via adb install Browser.apk, which you can either build from AOSP, or possible pull from a device or standard Android emulator via adb pull /system/app/Browser.apk - I think this is the default Browser location on devices).

一旦安装了Browser.apk,您应该可以按照您的预期测试这些内容。

Once Browser.apk is installed you should be able to test these things as you would expect.

所以步骤如下:

So the steps are:


  1. 启动一个运行Android 3.1的模拟器

  2. adb -s device_id pull /system/app/Browser.apk

  3. adb -s device_id install Browser.apk

这篇关于没有Chrome浏览器的Google TV模拟器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆