9
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

adbコマンドでブラウザを立ち上げてURLを開く

Last updated at Posted at 2016-12-20

例えば自分の開発マシンのIPアドレスが192.168.10.100だったとして、ポート3000でローカルWebサーバーが動いているとして、以下のコマンドを叩くとAndroid端末でブラウザが立ち上がって開発機のWebサーバーにアクセスしてくれる。

adb shell am start http://192.168.10.100:3000

Android端末で長いURL入力するのがめんどくさい時にぜひ。

別に開発機のローカルWebサーバーでなくても、通常のWebページでも開けます。

adb shell am start https://github.com/

Webサイト以外のURIスキームでも開けます。

adb shell am start ovrweb:https://aframe.io/examples/showcase/sky/

Carmel Developer PreviewでA-FrameのWebVRサンプルを開く例

9
8
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?