android 5.1介绍:

http://developer.android.com/about/versions/android-5.1.html?utm_campaign=lollipop-51-315&utm_source=dac&utm_medium=blog

5.1的targetSdkVersion"22"

看下新特新:

1

Multiple SIM Card Support

Android 5.1 adds support for using more than one cellular carrier SIM card at a time. This feature lets users activate and use additional SIMs on devices that have two or more SIM card slots.

You can access information about the currently active SIM through theSubscriptionManagerclass, including whether or not the device is considered to be roaming on the current network. This information is useful for developers who want to throttle their apps' data access down or off for device users who are sensitive to data access charges. Your app can be alerted to changes in a device's current network connection by requesting theREAD_PHONE_STATEpermission and settingSubscriptionManager.OnSubscriptionsChangedListeneron theSubscriptionManagerobject.

多个SIM卡的支持

你可以通过访问subscriptionmanager类激活SIM卡的信息,包括该设备是否是在当前的网络。可以有效控制应用的网络访问。

可以通过设置READ_PHONE_STATE配合SubscriptionManager.OnSubscriptionsChangedListener来对网络连接进行有效控制。

-----------------------------------------------------------------------------------

Deprecated HTTP Classes

The org.apache.http classes and the AndroidHttpClient class have been deprecated in Android 5.1. These classes are no longer being maintained and you should migrate any app code using these APIs to the URLConnection classes as soon as possible.

httpclient 在android 5.1不建议使用,不就将会被废弃,强力建议使用HttpUrlConnection

----------------------------------------------------------------------------------

Carrier Services

Android 5.1 provides support for telecommunication service providers to create apps that can perform carrier provisioning tasks on an Android device. These APIs provide a secure and flexible way for carrier-developed apps to perform these tasks and be distributed through Google Play. Apps that use these functions must be signed by a certificate that matches the certificate in the device's Universal Integrated Circuit Card (UICC).

The carrier service APIs have been added to theTelephonyManagerclass, theSmsManagerclass, and the newCarrierMessagingServiceclass. Apps can check for access to these APIs by calling thehasCarrierPrivileges()method. Apps that call these APIs without access receive aSecurityException.

Android 5.1提供了对电信服务提供商创建的应用程序,可以在Android上实现载波配置任务支持。这些API提供了一个安全和灵活的方式为载体开发的应用程序来执行这些任务和分布在google市场。应用程序使用这些功能必须由证书匹配的证书在设备的通用集成电路卡(UICC)签署。

承运人服务API被添加到telephonymanager类,该类和类newcarriermessagingservice smsmanager。应用程序可以通过调用hascarrierprivileges()方法访问这些API检查。应用程序调用这些API没有收到SecurityException。

更多相关文章

  1. Android系统设置选项的包名
  2. Android(安卓)Studio使用笔记
  3. 获取安装的应用
  4. LocationManager Android自动定位使用以及注意事项(个人)
  5. Android存储使用参考
  6. Android(安卓)okhttp使用
  7. Viewpager Indicator中PagerSlidngTab用法(与ViewPager一起使用)
  8. android 使用xml制作背景图片(shape的用法)
  9. 指定浏览器访问指定页面(支持UC、Opera、QQ、Dolphin、Skyfire、

随机推荐

  1. RxAndroid和RxJava的资料分享
  2. Android(安卓)左侧滑动窗口打开关闭监测
  3. Android集成支付宝
  4. Android中的sp和dp的区别
  5. Android Studio 快速入门详解
  6. Android中Fragment与Activity之间的交互(
  7. Android常见问题总结(四)
  8. android效率为什么这么的高呢
  9. Android Treble 结构:Part 1 - 介绍
  10. Android中Styles、Themes、attrs介绍