Welcome to the source code for Pro Android 3!!
This is the README file that will help you get the most from the book by
helping you get setup with the source of every example in the book. You
do not need to download and use every file from the www.androidbook.com
website; you can download code just from the chapters you're interested
in. Each chapter has its own file (in some cases more than one), and the
filename matches the chapter. Or, you may have downloaded the one big
zipfile from the apress.com website. These instructions work for either
situation, with the differences explained below when importing the
projects into Eclipse.
Before you attempt to import any of the projects from the zip files, you
need to ensure that your workstation environment is setup and ready to
receive Android projects. Please refer to chapter 2 for information on
installing Java, Eclipse and the Android SDK.
The other thing you should do before loading our sample projects is make
sure that you have Android platforms loaded, via the Android SDK and AVD
Manager (see Figure 2-2 in the book). One way to get to this is to
locate the android script under the tools directory of the Android SDK,
and launch it. The other way is to use the Android SDK and AVD Manager
menu item from the Eclipse Window menu. Either way, make sure you have
the following platforms loaded:
Android 1.6 (4)
Android 2.1 (7)
Android 2.2 (8)
Android 2.3.3 (10)
Android 3.0 (11)
If you'll be working with projects that display maps, make sure you also
go into the Third party Add-ons, under Google Inc. add-ons, and get the
Google APIs for the platforms in the list above, i.e., 4, 7, 8, 10 and
11.
You'll need to import the book's projects into an Eclipse workspace.
Decide which workspace you want to load these projects into, or create a
new one. To get a new workspace in Eclipse, you can either specify a new
workspace when you launch Eclipse (and it asks for the workspace), or once
you're in Eclipse, you can go to the File -> Switch Workspace ->
Other... menu item. This will bring up a chooser like before and you can
simply give it a new workspace location and Eclipse will create it for
you.
Whether you just created a new workspace or you're in an existing
workspace, you should ensure that the Android Preferences of Eclipse
have been configured with the SDK Location, as shown in Figure 2-4 from
the book.
To load sample projects into Eclipse, use the File -> Import... menu
option. For the import source, choose General -> Existing Projects into
Workspace. Click Next. If you did not unpack the zip file that you
downloaded, choose "Select archive file", then click on the Browse...
button next to the entry field. Navigate to the desired zip file, choose
it and click Open. You should now see all projects from the zip file
displayed in the Projects window, and all projects should have a
checkmark next to their name. Using the buttons and/or checkmarks,
select which projects you want to import, then click on the Finish
button. This works well for the zip files that are specific to a book
chapter, but if you've downloaded the single, complete zip file from the
apress.com site, this method doesn't work as well. The list of projects
will be all of the projects in the zip file, so for the one zip file
from apress.com, you'll get all projects in the book. A better option in
this case is to unzip the big zip file first. When you're doing the File
-> Import... you will choose "Select root directory..." instead, and you
will Browse to the directory for the chapter you want projects from. By
opening a chapter directory, the list of projects will be just those
projects from that chapter. Much more manageable.
There is a chance you'll see errors for projects you import. The error
message might say "Android requires compiler compliance level 5.0.
Please fix project properties." To correct this, right click on the
project in Eclipse, and choose the menu item Android Tools -> Fix
Project Properties. To avoid these particular errors in the first place,
you can go into Eclipse Preferences, under Java -> Compiler, and make
sure that the Compiler compliance level is set to 1.5 (which means Java
JDK 5 which corresponds to compliance level 5.0). This would of course
mean that you're running with an older version of the Java JDK. But you
could set this to 1.5 to load the projects, then change the compliance
level to another value (for example 1.6) and Eclipse will recompile
against that version. To use 1.6 you would need to have JDK 6 installed.
If you have other errors, it could be due to changes to the Android
plugin for Eclipse. For each error, see if you can figure out what needs
to be done. You can always send an email to us and we'll help you out.
It's probably a good idea to clean the projects once loaded. This will
rebuild the binaries for you, ensuring the applications work the best in
your environment. To clean the projects, go to Eclipse's Project menu and
choose Clean.... Select Clean all projects and click OK. It may take
several seconds to clean all projects. Once the cleaning is complete,
assuming you have the Build Automatically option set on the Project menu,
Eclipse will regenerate all of the applications in the workspace. If you
don't have Build Automatically set, you will need to take care of the
build process on your own.
Once the projects are loaded and error-free, you can simply go ahead and
run them, either in the emulator, or on a real device. The only
exceptions to this are those applications that require map functionality.
For those, you will need to edit the appropriate layout file to put your
own Map API key in. The Map API key is explained in chapter 17.
Dave is at davemac327@gmail.com
Satya is at satya.komatineni@gmail.com
没有合适的资源?快使用搜索试试~ 我知道了~
精通android3 源码 上百个实例 站在巨人的肩膀上
共1906个文件
xml:442个
java:406个
class:342个
需积分: 5 10 下载量 193 浏览量
2012-05-16
09:12:08
上传
评论 1
收藏 6.66MB ZIP 举报
温馨提示
精通android3 源码 多点触摸OpenGl ES上百个实例 站在巨人的肩膀上
资源推荐
资源详情
资源评论
收起资源包目录
精通android3 源码 上百个实例 站在巨人的肩膀上 (1906个子文件)
IStockQuoteService.aidl 227B
IStockQuoteService.aidl 227B
ITranslate.aidl 173B
IStockQuoteService.aidl 145B
IStockQuoteService.aidl 121B
IStockQuoteService.aidl 121B
Person.aidl 89B
Person.aidl 89B
Person.aidl 38B
resources.ap_ 357KB
resources.ap_ 57KB
resources.ap_ 34KB
resources.ap_ 34KB
resources.ap_ 31KB
resources.ap_ 31KB
resources.ap_ 20KB
resources.ap_ 19KB
resources.ap_ 18KB
resources.ap_ 16KB
resources.ap_ 16KB
resources.ap_ 16KB
resources.ap_ 13KB
resources.ap_ 11KB
resources.ap_ 11KB
resources.ap_ 11KB
resources.ap_ 10KB
resources.ap_ 10KB
resources.ap_ 10KB
resources.ap_ 10KB
resources.ap_ 10KB
resources.ap_ 6KB
TestMenus.apk 364KB
TestActionBar30_v2.apk 64KB
SampleViewAnimation.apk 42KB
SampleFrameAnimation.apk 40KB
SampleDialogs.apk 39KB
TestIntents.apk 37KB
TestOpenGL.apk 31KB
TestWidgets.apk 30KB
TestResources.apk 30KB
SearchRegularActivities.apk 23KB
TestListWidget.apk 22KB
SampleLayoutAnimation.apk 21KB
TestProvider.apk 20KB
TestContactsNext.apk 19KB
StandaloneBroadcastReceiver.apk 19KB
TestAlarmManager.apk 17KB
SimpleSuggestionProvider.apk 17KB
CustomSuggestionProvider.apk 16KB
TestHandlersBook3v2.apk 16KB
TestLibraryApp.apk 15KB
TestBroadcastReceiverBook3V2.apk 15KB
TestLiveFolders.apk 13KB
proguard.cfg 1KB
proguard.cfg 1KB
proguard.cfg 1KB
proguard.cfg 1KB
GLES20TriangleRenderer.class 8KB
GLES20TestRenderer.class 8KB
BookProvider.class 7KB
ResourceTester.class 7KB
MainActivity.class 6KB
MainActivity.class 6KB
RegularPolygon.class 6KB
BetterCursorWrapper.class 5KB
MyContactsProvider.class 5KB
ConfigureBDayWidgetActivity.class 5KB
APrefWidgetModel.class 5KB
ES20AbstractRenderer.class 5KB
SuggestUrlProvider.class 5KB
SampleMenusActivity.class 5KB
AggregatedContactFunctionTester.class 5KB
TestListWidgetProvider.class 4KB
ProviderTester.class 4KB
BDayWidgetModel.class 4KB
LightedGreenRoom.class 4KB
TestHandlersDriverActivity.class 4KB
DebugActivity.class 4KB
MonitoredDebugActivity.class 4KB
MonitoredDebugActivity.class 4KB
BDayWidgetProvider.class 4KB
IntentsUtils.class 3KB
TestAlarmsDriverActivity.class 3KB
IntentsUtils.class 3KB
AddContactFunctionTester.class 3KB
DebugActivity.class 3KB
RegularActivity.class 3KB
MainActivity.class 3KB
MainActivity.class 3KB
TestActivity.class 3KB
MainActivity.class 3KB
Utils.class 3KB
GreenRoomOriginal.class 3KB
TestRemoteViewsFactory.class 3KB
SearchActivity.class 3KB
RawContactFunctionTester.class 3KB
GenericPromptDialog.class 3KB
AbstractSingleTexturedRenderer.class 3KB
TestAppActivity.class 3KB
ScheduleIntentMultipleTimesTester.class 3KB
共 1906 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
nihaowangxinwei
- 粉丝: 2
- 资源: 57
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 边缘计算在计算机视觉系统中的应用与挑战.pptx
- 20240419上位机替换文件.zip
- 运营商物联网业务发展模式.docx
- Spring框架在IDEA中零基础配置并例题演示(使用最原始方法)
- 运营商的互联网新思维.docx
- 简历-求职简历-word-文件-简历模版免费分享-应届生-高颜值简历模版-个人简历模版-简约大气-大学生在校生-求职-实习
- 简历-求职简历-word-文件-简历模版免费分享-应届生-高颜值简历模版-个人简历模版-简约大气-大学生在校生-求职-实习
- 基于AT89C51 & DS18B20的温度采集proteus仿真设计.rar
- 运营商网络运营大数据应用实践研究.docx
- 简历-求职简历-word-文件-简历模版免费分享-应届生-高颜值简历模版-个人简历模版-简约大气-大学生在校生-求职-实习
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功