How to calculate upload and download frequency in android? -
now getting current network type. how calculate uarfcn? api have use?
int nettype = telephonymanager.getnetworktype(); switch (nettype) { case telephonymanager.network_type_gprs: case telephonymanager.network_type_edge: case telephonymanager.network_type_cdma: case telephonymanager.network_type_1xrtt: case telephonymanager.network_type_iden: return "2g"; case telephonymanager.network_type_umts: case telephonymanager.network_type_evdo_0: case telephonymanager.network_type_evdo_a: case telephonymanager.network_type_hsdpa: case telephonymanager.network_type_hsupa: case telephonymanager.network_type_hspa: case telephonymanager.network_type_evdo_b: case telephonymanager.network_type_ehrpd: case telephonymanager.network_type_hspap: return "3g"; case telephonymanager.network_type_lte: return "4g";
Comments
Post a Comment