Intent popupIntent = new Intent(mGlobalContext, AllocationDialogActivity.class);
popupIntent.putExtras(bundle);
popupIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
PendingIntent pendingIntent = PendingIntent.getActivity(mGlobalContext, 0, popupIntent,
PendingIntent.FLAG_ONE_SHOT);
try {
pendingIntent.send();
} catch (CanceledException e) {
e.printStackTrace();
}
위와 같은 방법으로 서비스에서 액티비티를 띄우게 됩니다.
그런데 보통때는 잘 띄우게 되서 문제가 없었는데,
화면이 꺼져있는 상태(슬립모드인듯)에서 화면을 켜면서 액티비티를 띄우게되면서
액티비티가 2개가 생성되는듯 합니다.(onCreate 부터 2번 호출이 됨)
ㅠㅠ도데체 어떤 문제인지 감도 안와서 이렇게 질문을 올립니다.
고수님들의 도움이 필요해요~도와주세요ㅠㅠ