์๋๋ก์ด๋ ์คํ๋์ค - notification Intent ์งํํ๊ณ ์๋ MainActivity๋ก ๋ค์ ์ด๋ํ๊ธฐ ํด๊ฒฐ
Intent notificationIntent = new Intent(getApplicationContext(), MainActivity.class);
notificationIntent.setAction(Intent.ACTION_MAIN);
notificationIntent.addCategory(Intent.CATEGORY_LAUNCHER);
notificationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
์งํํ๊ณ ์๋ MainActivity๋ก ๋ค์ ์ด๋์ ํ๊ณ ์ถ์ ๊ฒฝ์ฐ.
์ถ์ฒ:
https://like-tomato.tistory.com/156
[Notification] ์๋๋ก์ด๋ ์ฑ ์ค๋ณต ์คํ ๋ฌธ์ ์๋ฒฝ ํด๊ฒฐ ๋ฐฉ๋ฒ
์๋๋ก์ด๋ ์ ํ๋ฆฌ์ผ์ด์ ์ ๊ฐ๋ฐํ๋ค ๋ณด๋ฉด ๋๋ถ๋ถ์ ๊ฐ๋ฐ์๋ค์ด ํ์์ ์ผ๋ก ๊ฒช๋ ๋ฌธ์ ๊ฐ ์๋ค. 1. ์ฑ ์ฌ์ฉ์ค ์๋ฆผ์ ๋๋ฅด๋ฉด ์ฑ์ด ์ค๋ณต์ผ๋ก ์คํ๋๋ ๋ฌธ์ . 2. ๋ทฐํ์ด์ ธ ๊ฐฑ์ ๋ฌธ์ . ์ 2๊ฐ์ ๋ฌธ์
like-tomato.tistory.com
https://stackoverflow.com/questions/5502427/resume-application-and-stack-from-notification
Resume application and stack from notification
I want to resume my app from a status bar notification in the exact same manner as when the user taps its icon in the launcher. That is: I want the stack to be in the same state as it was before the
stackoverflow.com