[android][TIP]외부 어플리케이션 실행. * 묵시적 호출 Intent intent = getPackageManager().getLaunchIntentForPackage( " 패키지 이름" );startActivity(intent); * 명시적 호출ComponentName comp = new ComponentName("패키지명","패키지명.액티비티명");Intent intent = Intent(Intent.ACTION_MAIN);intent.addCategory(Intent.CATEGORY_LAUNCHER)intent.setComponent(comp);startActivity(intent); * 최상위 액티비티를 실행 하고 싶은 경우Intent intent = getPackageManager().getLaunchIntentForPackage( ".. 더보기 [android][기초]페이지 이동 1. 단순 페이지 이동 Intent intent = new Intent(this, PackageA_2.class); startActivity(intent); 2. 컴포넌트 이동 Intent intent = new Intent(); ComponentName cn = new ComponentName("com.test.PackageB", "com.test.PackageB.PackageB_1"); intent.setComponent(cn); startActivity(intent); 더보기 [android][Notification]통지 등록및 통지유틸 * 4.2 미만 버전에서 사용 하는 방법.@SuppressWarnings("deprecation")public void onBtnClick(View view) {NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);Notification notification = new Notification(R.drawable.ic_launcher,"알려드립니다", System.currentTimeMillis());// 이용자가 통지를 확인한 후에는 통지를 표시하지 않도록 설정notification.flags = Notification.FLAG_AUTO_CANCEL; Intent inten.. 더보기 이전 1 ··· 8 9 10 11 12 13 14 ··· 26 다음