ApiDemos has been using private APIs from telephony-common to demonstrate the Mms feature. However, this is causing link-type check warning because ApiDemos itself is built with SDK (LOCAL_SDK_VERSION is set) but telephony-common isn't. As we are working on to promote the warnings into errors, this warnings must be fixed. Fixing the warning by copying the PDU classes from telephony-common, so that there is no need to link to the library. Also the package name for the copied classes are all changed in order to prevent the collision with the same classes in telephony-common which is in the boot class path. Test: m -j ApiDemos is successful and does not show any link-type check warning. Change-Id: Ica508cd4daf3640e4f90fa26dd11dfd03867d717
The API Demos application includes a variety of small applications that illustrate the use of various Android APIs. It includes samples of: - Notifications - Alarms - Progress Dialogs - Intents - Menus - Search - Persistent application state - Preferences - Background Services - App Widgets - Voice Recognition - And many many more... Api demos is designed to use the compatibility library "android-support-v4.jar". It is available through the SDK Updater in the "Android Compatibility package". Once downloaded, copy the jar file into the ApiDemos project libs/ folder. (If using Eclipse, add it manually to the project build path).