How to find out whether android device has cellular radio module?

后端 未结 2 1737
-上瘾入骨i
-上瘾入骨i 2021-01-14 08:59

How can I find out for sure that device really has gsm, cdma or other cellular network equipment (not just WiFi)? I don\'t want to check current connected network state, bec

2条回答
  •  天命终不由人
    2021-01-14 09:39

    If you're publishing in the store, and you want to limit your application only being visible to actual phones, you could add a into your manifest that asks for android.hardware.telephony. Check out if that works for you from the documentation.

提交回复
热议问题