首先是使用Eclipse创建一个ApiDemo示例:File ->New Android Project 选择Create project from existing sample (不同Android版本有对应的ApiDemo示例)。