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 the SubscriptionManager class, 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 the READ_PHONE_STATE permission and settingSubscriptionManager.OnSubscriptionsChangedListener on the SubscriptionManager object.

多个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 the TelephonyManager class, the SmsManager class, and the newCarrierMessagingService class. Apps can check for access to these APIs by calling the hasCarrierPrivileges() method. Apps that call these APIs without access receive a SecurityException.

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

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

最新文章

  1. 行为驱动开发(BDD)实践示例
  2. UnsupportedClassVersionError 错误解决办法
  3. js单击自动选择文本
  4. .NET微信开发通过Access Token和OpenID获取用户信息
  5. PyCharm光标变粗的解决办法
  6. 【BZOJ】2002: [Hnoi2010]Bounce 弹飞绵羊(lct)
  7. 树莓派 2 win 10 IOT
  8. __cdecl、__stdcall、__fastcall、thiscall 进栈、出栈区别
  9. SAE网站搭建(1)
  10. Headfirst设计模式的C++实现——抽象工厂(Abstract Factory)
  11. mvc的视图中显示DataTable的方法
  12. Android使用SVG矢量创建很酷的动态效率!
  13. Day3:T1数论+高精 T2搜索
  14. Redhat Linux 自动修改密码
  15. 数据库sql使用小结
  16. PON
  17. Pandas之索引
  18. JS的防抖,节流,柯里化和反柯里化
  19. 关于hover和after、before合用
  20. 编译apache报APR not found

热门文章

  1. Openjudge-计算概论(A)-点与正方形的关系
  2. 【简单学习shell】iptables命令实用
  3. 36.中国特色社会主义的体制中有这样的现象:地方省政府要坚持党的领导和按 照国务院的指示进行安全生产。请编写一个java应用程序描述上述的体制现象。 要求如下: (1)该应用程序中有一个“党中央”接口:CentralPartyCommittee,该接口中 有个“坚持党的领导”方法:void partyLeader() (2)该应用程序中有一个“国务院”抽象类:StateCouncil,该抽象类中有
  4. javascript: 常用操作
  5. EF Unit Of Work
  6. eclipse和tomcat整合之后每次发布server.xml被修改(转)
  7. Shell脚本常用判断
  8. 项目管理实践【五】自动编译和发布网站【Using Visual Studio with Source Control System to build and publish website automatically】
  9. 使用NSURLProtocol实现UIWebView的离线缓存
  10. 【JQuery的选择器】