开发者

Why might both the TELEPHONY_SERVICE and WIFI_SERVICE be unavailable on Android tablet?

I have a user with a Sprint Evo View 4G Tablet, and we have a feature that requires either the TELEPHONY_SERVICE or WIFI_SERVICE to be accessible to our app (and we of course request these permissions in our AndroidManifest.xml)

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />    
<uses-permission android:name="android.permission.READ_PHONE_STATE" />

Can anyone speculate as to why this device might return null for both of these API calls:

WifiManager wm = (WifiManager)context.getSystemService(Context.WIFI_SERVICE)开发者_开发技巧;
TelephonyManager tManager = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);

Thanks!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜