zz962

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年10月11日

摘要: 问题设置SDK Location的时候提示“Could not find [路径]\adb.exe!”解决装最新的ADT12,重启动eclipse后问题消失说明解决过程中尝试了把新的SDK中的adb.exe所在路径加入Path(新版SDK里,adb.exe的位置变了),也尝试了把adb.exe拷回tools目录,都没有奏效,有的还产生了额外的问题。 深层次原因不清问题根据教程创建HelloAndroid后,编译出错,“R cannot be resolved”或“Error executing aapt. Please check aapt is present at .. \android- 阅读全文
posted @ 2011-10-11 17:14 zz962 阅读(331) 评论(0) 推荐(0) 编辑

摘要: The SEH Termination Sample ApplicationThe SEHTerm application, 23-SEHTerm.exe, demonstrates how termination handlers work. The source code and resource files for the application are in the 23-SEHTerm directory on the companion content Web page.When you run the application, the primary thread enters 阅读全文
posted @ 2011-10-11 13:40 zz962 阅读(114) 评论(0) 推荐(0) 编辑

摘要: Notes About thefinally BlockSo far we have explicitly identified two scenarios that force thefinally block to be executed:到目前为止,我们确定的两种导致finally执行的情形:Normal flow of control from the try block into the finally block正常情况,从try中进入Local unwind: premature exit from the try block (goto,longjump,continue,br 阅读全文
posted @ 2011-10-11 13:24 zz962 阅读(172) 评论(0) 推荐(0) 编辑

摘要: http://developer.android.com/guide/topics/manifest/manifest-intro.htmlEvery application must have an AndroidManifest.xml file (with precisely that name) in its root directory. The manifest presents essential information about the application to the Android system, information the system must have be 阅读全文
posted @ 2011-10-11 10:47 zz962 阅读(584) 评论(0) 推荐(0) 编辑

摘要: API Demo是什么Android提供的API范例在哪里andriod-sdk-windows\samples\android-8下的ApiDemosandroid-8下也有,每个SDK似乎都有目录文件介绍TODO如何运行1、打开eclipse2、新建一个Android工程3、选择”Create project from existing source“,在Location中设置ApiDemos所在的目录(也是AndroidManifest.xml所在的目录),点击”Finish“4、对话框关闭后可见”ApiDemos“5、编译:Project--Build project6、运行:Run- 阅读全文
posted @ 2011-10-11 10:24 zz962 阅读(1758) 评论(0) 推荐(0) 编辑

摘要: (TODO)基本效果图按键介绍安装使用输入法打电话发短信安装删除程序运行程序,切换程序 阅读全文
posted @ 2011-10-11 10:14 zz962 阅读(182) 评论(0) 推荐(0) 编辑

摘要: 这一部分介绍了:1、使用SEH简化错误处理2、使用__leave降低开销Funcarama1We've pretty much covered the basic syntax and semantics of termination handlers. Now let's look at how a termination handler could be used to simplify a more complicated programming problem. Let's look at a function that doesn't take adv 阅读全文
posted @ 2011-10-11 09:03 zz962 阅读(156) 评论(0) 推荐(0) 编辑

2011年10月10日

摘要: 虚拟设备属性运行效果 阅读全文
posted @ 2011-10-10 20:55 zz962 阅读(291) 评论(0) 推荐(0) 编辑

摘要: 安装JDK1、下载JDK2、启动安装(一路next)3、配置环境变量 1、增加环境变量JAVA_HOME,记录JDK的安装目录 2、在环境变量Path中增加SDK下bin和jre/bin的目录 3、增加环境变量CLASSPATH,值为:.;%JAVA_HOME%lib/dt.jar;%JAVA_HOME%lib/tools.jar4、检验 1、启动命令行窗口 2、输入java或者javac,若显示了命令提示,则为成功安装Eclipse1、从官网下载(注意下载Java版本)2、该软件是免安装的,运行eclipse.exe即可3、第一次启动需要设置工作目录安装Android S... 阅读全文
posted @ 2011-10-10 16:13 zz962 阅读(788) 评论(0) 推荐(0) 编辑

摘要: Funcenstein4Let's take a look at one more termination-handling scenario:DWORD Funcenstein4() { DWORD dwTemp; // 1. Do any processing here. ... __try { // 2. Request permission to access // protected data, and then use it. WaitForSingleObject(g_hSem, INFINITE); ... 阅读全文
posted @ 2011-10-10 10:13 zz962 阅读(129) 评论(0) 推荐(0) 编辑