Android - to listen the phone state
<p>In my application, I need to set a phoneStateListener so that when the connectivity is off,I am able to cache the required updations in a hashtable.I know how to do that using phoneStateListener in a single activity.But can you suggest how can I do it an efficient way other than repeating the same in all activities?. I am a novice in both Java and android.I thought about doing inheritance,But all my classes are already inheriting another class.So how can I implement this without using inheritance?</p>
