随笔分类 - android
摘要://弹出框 public void totast(String text) { Toast.makeText(getApplicationContext(), text, Toast.LENGTH_SHORT).show(); } //浏览器打开网址 private void open_url(String sUrl) { Intent intent = new Intent(); intent.setData(Uri.parse(sUrl)); intent.setActi...
阅读全文
摘要:显示网页Uri uri = Uri.parse("http://www.google.com.hk/");Intent intent = new Intent(Intent.ACTION_VIEW, uri);startActivity(intent); 显示地图 Uri uri = Uri.parse("geo:38.899533,-77.036476");Intent intent = new Intent(Intent.ACTION_VIEW, uri); startActivity(intent); //其他geo...
阅读全文

浙公网安备 33010602011771号