I have an Android app that has an Application class and I have another class that extends PhoneStateListener.
I would like to use one of the objects from the Application class in my class that extends the PhoneStateListener. I wasn’t able to do so because it the PhoneStateListener class doesn’t extend Activity.
Is there any way I can use the object from the Application class within my PhoneStateListener class?
See this example and this Question