In my android app based on connection type (wifi, data plan and one more option) I am displaying an icon on the screen.
I am able to get whether wifi is enabled or not, but I don't know how to get info on whether the data plan is enabled or not. How do I do this?
I need to know continuously whether wifi is enabled or data plan is enabled. If wifi is enabled after some time it may disconnect, in which case I need check whether the data plan is enabled or not. Based on the connection type I need to change icon on one of my screen in my app.