How does Android globalize dialog?

how can I make dialog global so that all activity can be used?

I put dialog initialization in the parent class, but I get an error:
android.view.WindowManager$BadTokenException: Unable to add window-- token android.os.BinderProxy@978279 is not valid; is your activity running?


I don't know what this means. Even if someone does offer such a thing on github.

Portal: tangxianming/global-dialog

p.s. Dialog and AlertDialog have various limitations, but there are many ways to meet the requirements.


from the Log message,
I speculate that you did not create (in onCreate) and destroy (in onDestroy) correctly in BaseActivity.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3d9c5-2c3b6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3d9c5-2c3b6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?