user1057453
user1057453

Reputation: 23

Google TV emulator without chrome browser?

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);

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

Upvotes: 2

Views: 2785

Answers (2)

Nomixe
Nomixe

Reputation: 129

In the Android smart TV emulator, I've tried the simplest method to download the Chrome browser. Drag and drop the APK onto the emulator after downloading it from the provided link. After you will allow from to Settings > Device Preferences > Security & Restrictions > Unknown sources

Chrome APK Download URL

Second

Alternate you can follow the article link

Upvotes: 1

powerj1984
powerj1984

Reputation: 2226

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 possibly 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).

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

So the steps are:

  1. Start an emulator with Android 3.1 running
  2. adb -s device_id pull /system/app/Browser.apk
  3. adb -s device_id install Browser.apk

Upvotes: 5

Related Questions