I am looking for a generic way to cater this exception. This can always occur if a user for example keep switching activities like really quickly. Because obviously there are like so many places we would have tried to access the activity instance and when thats null, app would crash with this exception. One way is to check "isFinishing()" every time i access a activity instance, I want to know if there is another better and generic way to tackle this issue on application level.
Forgive me if my question sound stupid or doesn't make any sense but i guess there is no harm in asking :).
0 comments:
Post a Comment