Call & SMS & Chaton intent
Intent intent; if (v.getId() == call.getId()) { intent = new Intent(Intent.ACTION_DIAL); //Uri.parse("tel:" + TelNumber)); getContext().startActivity(intent); } else if (v.getId() == sms.getId()) { intent = new Intent(Intent.ACTION_VIEW); //intent.putExtra("sms_body", "The SMS text"); intent.setType("vnd.android-dir/mms-sms"); getContext().startActivity(intent); } else { intent = new Intent(Intent.ACTION_MAIN); intent.setComponent(ComponentName.unflattenFromString("com.sec.chaton/.HomeActivity")); intent.addCategory(Intent.CATEGORY_LAUNCHER ); getContext().startActivity(intent); }
'Android' 카테고리의 다른 글
Bitmap 비율 대로 이미지 크기 조정하기 (0) | 2013.09.09 |
---|---|
팝업 메뉴의 스타일 변경 - How to set the background of Android PopupMenu to White [duplicate] (0) | 2013.09.09 |
메뉴 키 얻기 (0) | 2013.09.09 |
ScrollView 에 최하단 확인 (0) | 2013.09.09 |
java.util.ConcurrentModificationException (0) | 2013.09.09 |