πƒπ€πˆπ‹π˜ π“πˆππ’/ANDROID

같은 Activityκ°€ 계속 생성 될 λ•Œ, 이전 μ•‘ν‹°λΉ„ν‹° μƒνƒœκ°€ λ³΄μ—¬μ§€λŠ” 문제(Android Manifest launch mode)

pyorolong 2020. 6. 9. 13:37
android:launchMode [AndroidManifest.xml] Activity μ‹œμž‘κ³Ό κ΄€λ ¨ν•œ 속성
  • call to its onNewIntent() : always make [new Intent]
  • routes the intent : not make new Intent [just routing]

 

 

- Multiple Instances

  • standard : multiple activities can be started. very first activity state is shown
  • singleTop : multiple activities can be started. latest activity state is shown

- Single Instances (not recommended for general use)

  • singleTask : just one activity with latest state
  • singleInstances : 

- Multiple Instances

  • standard : μ—¬λŸ¬κ°œμ˜ μ•‘ν‹°λΉ„ν‹°κ°€ μ‹€ν–‰ 될 수 μžˆλ‹€. κ°€μž₯ 이전 μƒνƒœμ˜ μ•‘ν‹°λΉ„ν‹° μƒνƒœλ‘œ 보여진닀.
  • singleTop : μ—¬λŸ¬κ°œμ˜ μ•‘ν‹°λΉ„ν‹°κ°€ μ‹€ν–‰ 될 수 μžˆλ‹€. κ°€μž₯ μ΅œμ‹  μƒνƒœλ‘œ 보여진닀.

- Single Instances (not recommended for general use)

  • singleTask : μ‹€ν–‰λœ μ•‘ν‹°λΉ„ν‹°λŠ” 단 ν•˜λ‚˜μ΄λ©° 항상 μ΅œμ‹ μ˜ μƒνƒœλ‘œ 보여진닀. 
  • singleInstances :