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
'๐จ๐ผโ๐ป๊ฐ๋ฐ > ์๋๋ก์ด๋ ์คํ๋์ค' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
์๋๋ก์ด๋ ์คํ๋์ค - HTTP ํต์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ(Volley) (0) | 2022.04.05 |
---|---|
์๋๋ก์ด๋ ์คํ๋์ค - RecyclerView(๋ฆฌ์ฌ์ดํด๋ฌ๋ทฐ) ์กฐ์ (0) | 2022.03.30 |
์๋๋ก์ด๋ ์คํ๋์ค - ์ฑ ์์ด์ฝ ์จ๊ธฐ๊ธฐ/๋ณด์ด๊ธฐ (0) | 2021.12.19 |
์๋๋ก์ด๋ ์คํ๋์ค - ๋ถํ ์ ์๋ ์คํ (0) | 2021.12.19 |
์๋๋ก์ด๋ ์คํ๋์ค - ๋ฐฑ๊ทธ๋ผ์ด๋ ์๋น์ค ์คํ (0) | 2021.12.19 |