´Ù¸¥ ¾Û ½ÇÇà
ÀÎÅÙÆ®¸¦ ÀÌ¿ëÇÏ¿© ±âÁ¸ ¾ÛÀ» ½ÇÇàÇغ¸ÀÚ. ¿©±â´Â ÀϺκÐÀÇ ³»¿ë¸¸ Ç¥½Ã ÇÏ¿´´Ù. //À¥ÆäÀÌÁö È£Ãâ Uri uri = Uri.parse("http://www.google.co.kr"); Intent intent = new Intent(Intent.ACTION_VIEW, uri); startActivity(intent); //Áöµµ Ç¥½ÃÇϱâ Uri uri = Uri.parse("geo:0,0"); Intent intent = new Intent( Intent.ACTION_VIEW, uri); startActivity( intent); //ÀüÈ ´ÙÀ̾ó Ç¥½Ã Uri uri = Uri.parse("tel:114"); Intent intent = new Intent( Intent.ACTION_DIAL, uri); startActivity( intent); //¼³Á¤ ȸé Ç¥½Ã android.provider.Settings ÀÓÆ÷Æ® Intent intent = new Intent( Settings.ACTION_SETTINGS); startActivity( intent); //¹®ÀÚ º¸³»±â Intent sendIntent = new Intent(Intent.ACTION_VIEW); String smsBody = "¿µÈ º¸·¯ °¡ÀÚ"; sendIntent.putExtra("sms_body", smsBody); // º¸³¾ ¹®ÀÚ sendIntent.putExtra("address", "0107778888"); // ¹Þ´Â»ç¶÷ ¹øÈ£ sendIntent.setType("vnd.android-dir/mms-sms"); startActivity(sendIntent); |