반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 나스닥
- 다우
- 사드보복완화
- 셀트리온
- 다우산업
- 무역전쟁
- ruby
- 네마녀의날
- 파이썬
- 주식시황
- e-mailwriting
- 영어메일쓰기
- 금리인상
- toeice-mail
- 화승엔터프라이즈
- Java
- 트럼프
- LG전자
- 토익이메일
- 어학·외국어
- englishwriting
- dataframe
- Python
- 국제유가
- 안드로이드
- 시황
- Intent
- android
- S&P
- 영어메일
Archives
- Today
- Total
목록안드로이드 (6)
Developer MJ Story
[Android/Intent] Intent Flags Android Service에서 Activity Call 하는 방법
Activity가 아닌 곳에서 Activity를 Call하기 위해서는 'FLAG_ACTIVITY_NEW_TASK' 이 flag가 필요Source CodeIntent intent = new Intent(this, targetActivity.class);intent.addCategory(Intent.CATEGORY_LAUNCHER);intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);startActivity(intent);FLAG_ACTIVITY_NEW_TASK : 동일한 affinity의 task가 있으면 그곳에 있는 Activity가 실행되고 아니면 새로운 task를 만들어 실행 해라라는 의미의 flagservice에서 Activity를 call 하는데 이 flag를 사용..
Software/Android
2014. 6. 9. 10:27