随笔分类 -  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... 阅读全文
posted @ 2013-11-15 16:11 忆殇之痕 阅读(192) 评论(0) 推荐(0)
摘要:显示网页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... 阅读全文
posted @ 2013-10-17 15:18 忆殇之痕 阅读(214) 评论(0) 推荐(0)