Detecting changes in network type (TelephonyManager) in android

I want my application to automatically notify the user when changes networkType(for example, from EDGEto 3Gor 3Gto 1XRTT, etc.). Using the method getNetworkType(), I have to constantly check the change in networkType. Are there any intentions that are broadcast throughout the system when a change is detected.

+4
source share
1 answer

Take a look at ConnectivityManger.CONNECTIVITY_ACTION Ref

From the documentation

. . NetworkInfo ; , , .

0

Source: https://habr.com/ru/post/1524432/


All Articles