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

前端 未结 3 1768
青春惊慌失措
青春惊慌失措 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:05

    I also faced the same problem. I have used tab bar for this. Just use getParent() instead of youractivity.this.

    I hope this will help.

提交回复
热议问题