Android dialogs are causing android.view.WindowManager$BadTokenException: Unable to add window

前端 未结 3 1748
青春惊慌失措
青春惊慌失措 2021-01-16 04:48

I have putted my activities in childview and now I cannot display dialogs from my activities and adapters. In my logCat i\'m getting

04-11 12:39:59.823: E/A         


        
3条回答
  •  悲&欢浪女
    2021-01-16 05:11

    the activity object must be the activity that is currently shown on the screen. If it's something that was already paused or not build show yet it will give this error.

提交回复
热议问题