why i am getting ClassCastException
posted 3 years ago
You only get a ClassCastException for one reason: the Object you are casting is not an instance of the Class you are casting it to. Just because your Global class extends Application does not mean it will be the Application used to instantiate your app. What does your Manifest look like?