-Home 키를 Long Press 하게 되면 해당 app은 Recent List로 이동하게 된다
이 아이콘을 다시 누를 시 해당 app으로 이동하게 된다.
이때 Home 키를 Long Press하게 되도 app이 Recent List로 이동 하지 않게 하려면
해당 activity에서
android:exdudeFromRecents = “true”를 주게 되면 된다.
만약 Intent 에 flag 형태로 주고 싶을 경우에는 Intent에 FALG_ACTIVITY_EXCLUDE_FROM_RECENTS
를 설정해도 똑같은 효과가 가능하다
어플의 중첩 실행 방지
android:launchMode="singleInstance"
android:excludeFromRecents="true"
android:taskAffinity=""
'android' 카테고리의 다른 글
Notification (0) | 2014.09.21 |
---|---|
Activitiy LunchMode (0) | 2014.09.20 |
Activity에 Fragment 씌우기 (0) | 2014.08.27 |
XML안에 다른 XML include 하기 (0) | 2014.08.26 |
Fragment 생명주기 (0) | 2014.08.26 |