views:

91

answers:

2

I was wondering is it possible to get a notification of when a new configured network is added to the WifiManager in Android?

I know you can get the current list of configured networks

getConfiguredNetworks

But is it possible to get notification of when a new one is added?

I dont see anything in the WifiManager that would be helpful.

Has anyone any other ideas? Or insight into how this could be achieved?

+1  A: 

Have you tried setting up a broadcast receiver for NETWORK_IDS_CHANGED_ACTION? I just looked through some of the WifiManager source code and Settings.git source code and it seems like that might do the trick. I haven't tried myself, though.

Roman Nurik
A: 

There is a good example of how to use the Notification bar, and play with the notification in: http://www.firstdroid.com/2010/05/09/learn-by-example-using-notification-bar/

Maybe this can help you.

azelez