How can I send a notification from inside the onProviderDisabled method of a LocationListener
问题 How can I send a notification from inside the onProviderDisabled method of a LocationListener? So far I have been using: Toast.makeText(mainmenu, "GPS Location providers are disabled... blah blah", Toast.LENGTH_LONG).show();}}); but that entails using a static mainmenu variable stored when the mainmenu class is first instantiated - I gather doing it that is a bad idea, in case the mainmenu object gets removed from memory I guess - so I think I should be using notifications. I guess I need to