1. 程式人生 > >Android跳轉瀏覽器開啟URL

Android跳轉瀏覽器開啟URL

			imageButtonBrowser
					.setOnClickListener(new ImageButton.OnClickListener() {

						public void onClick(View v) {
							Uri uri = Uri.parse(dataModel
									.getData(Constant.CODE_CONTENT));
							Intent intent = new Intent(Intent.ACTION_VIEW, uri);
							startActivity(intent);
						}
					});