본문 바로가기
Programing/Android / Java

Android/JAVA - BroadcastReceiver에서 Activity 호출하기

by CtrlCV맨 2014. 4. 5.

Intent i = new Intent(context, AutoRedialActivity.class );
PendingIntent pi = PendingIntent.getActivity(context, 0, i, PendingIntent.FLAG_ONE_SHOT);
try {
      pi.send();
} catch (CanceledException e) {
      e.printStackTrace();
}