본문 바로가기
Programing/Android / Java

안드로이드 BroadcastReceiver에서 Activity 호출하기

by CtrlCV맨 2013. 12. 30.
728x90

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();

728x90