1 / 58

从 Cupcake 到 Jelly Bean —— android 兼容性开发

Thomas Ye 触宝. 从 Cupcake 到 Jelly Bean —— android 兼容性开发. developer.android.com. Supporting Different Devices. 语言. 语言 屏幕. 语言 屏幕 Android 版本. 语言 屏幕 Android 版本 机型. 屏幕多分辨率支持. QVGA HVGA WVGA FWVGA FQVGA VGA ……. iPhone5 2012.9.13. wrap_content. wrap_content match_parent. dp dip sp. NinePatch.

emery
Download Presentation

从 Cupcake 到 Jelly Bean —— android 兼容性开发

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ThomasYe 触宝 从Cupcake到JellyBean——android兼容性开发

  2. developer.android.com

  3. SupportingDifferentDevices

  4. 语言

  5. 语言屏幕

  6. 语言屏幕Android版本

  7. 语言屏幕Android版本机型

  8. 屏幕多分辨率支持

  9. QVGAHVGAWVGAFWVGAFQVGAVGA……

  10. iPhone52012.9.13

  11. wrap_content

  12. wrap_contentmatch_parent

  13. dpdipsp

  14. NinePatch

  15. 实时计算

  16. 720P 1080P

  17. API Level

  18. android.support.*

  19. 使用新的API

  20. 使用新的API功能优势

  21. 使用新的API功能优势性能优势

  22. SharedPreference

  23. SharedPreference.EditorAPILevel8:commit()

  24. SharedPreference.EditorAPILevel9:apply()

  25. MotionEvent

  26. 接近80个常量定义

  27. API Level4 不足10个

  28. ACTION_CANCELACTION_DOWNACTION_MOVEACTION_UP

  29. ACTION_POINTER_1_DOWNACTION_POINTER_1_UPACTION_POINTER_2_DOWNACTION_POINTER_2_UPACTION_POINTER_3_DOWNACTION_POINTER_3_UPACTION_POINTER_ID(_MASK)ACTION_POINTER_1_DOWNACTION_POINTER_1_UPACTION_POINTER_2_DOWNACTION_POINTER_2_UPACTION_POINTER_3_DOWNACTION_POINTER_3_UPACTION_POINTER_ID(_MASK)

  30. ACTION_POINTER_DOWNACTION_POINTER_UPgetActionIndex()

  31. 建议统一逻辑使用Adapter

  32. Lint的API检查

  33. 机型问题

  34. 使用Nexus系列开发

  35. INCOMING_TYPE = 1OUTGOING_TYPE = 2MISSED_TYPE = 3

  36. switch (type) {case INCOMING_TYPE://dosomethingbreak;caseOUTGOING_TYPE://dosomethingbreak;caseMISSED_TYPE://dosomethingbreak;}

  37. switch (type) {case INCOMING_TYPE://dosomethingbreak;caseOUTGOING_TYPE://dosomethingbreak;caseMISSED_TYPE://dosomethingbreak;default:assertNotReached();}

  38. ForceClose!

  39. 某些机型使用REJECT_TYPE=4

  40. SMS_TYPENEW_CONTACT_TYPE

  41. 不在Android文档里的双卡

  42. 支持上百款双卡手机

  43. 使用Java反射适配不同的API

  44. 开源的Android

  45. 茫茫多厂商的茫茫多机型

More Related