ボタンをクリックしたら、指定したURLのページを開く場合。
Uri uri = Uri.parse("http://○○○.html");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
作ればわかる!Androidプログラミング 第3版 SDK5/Android Studio対応 (Smart Mobile Developer)
- 作者: 金宏和實
- 出版社/メーカー: 翔泳社
- 発売日: 2015/06/19
- メディア: 大型本
- この商品を含むブログを見る