March 2013
Beginner to intermediate
580 pages
16h 11m
English
In this chapter, you have used a compatibility strategy known as graceful fallback. Graceful fallback means that your app will use new features and code when run on newer platforms and fall back to using older features on older ones. You did this by checking the SDK version at runtime.
Graceful fallback is not the only strategy. Instead of falling back on older platforms, you can use an identical feature that mimics the features of newer platforms. We call this strategy duplication. Duplication strategies fall into two groups: duplication-on-demand and duplicate replacement. In duplication-on-demand, you use the replacement only on older platforms where the real thing is unavailable. Duplicate replacement ...
Read now
Unlock full access