emily1314  

2012年3月15日

该文被密码保护。 阅读全文
posted @ 2012-03-15 09:24 emily1314 阅读(1) 评论(0) 推荐(0) 编辑

2012年3月14日

摘要: 今天遇到一个问题,我想在View中获取XML中定义的Button组件,但是无法获取。。。不知道原因。。。记得要考虑看到的其他书籍上,是用Bitmap图片作为按钮,然后根据用户点击的位置跟图片所在位置进行比较,如果在图片范围内,则表示点击了按钮 阅读全文
posted @ 2012-03-14 21:35 emily1314 阅读(272) 评论(0) 推荐(0) 编辑

2012年3月12日

摘要: onSaveInstanceState()is called by Android if the Activity is being stopped andmay be killed before it is resumed!This means it should store any state necessary to re-initialize to the same condition when the Activity is restarted. It is the counterpart to theonCreate()method, and in fact thesavedIns 阅读全文
posted @ 2012-03-12 20:49 emily1314 阅读(522) 评论(0) 推荐(0) 编辑

2012年3月3日

摘要: 使用效率检视工具traceView,在导出检测文件时,出现了“failed to pull a selection”问题,网上搜索了几篇文章,有的说,是因为导出超时,我将windows-->preferences-->android-->DDMS中的ADB connection time out 设置到了最大,再次导出,还是出现这个问题,后来,我将eclipse跟模拟器重新启动后,就能够导出了。很无奈的一个问题以及一个很无奈的解决办法,只是为了记录,为了给自己提示以及为了让别人更快的找到解决办法,不用纠结这样无奈的错误。 阅读全文
posted @ 2012-03-03 21:40 emily1314 阅读(2451) 评论(1) 推荐(1) 编辑
 
摘要: ACOD上关于Context的解释:Interface to global information about an application environment. This is an abstract class whose implementation is provided by the Android system(added by me:By subclass). It allows access to application-specific resources and classes, as well as up-calls for application-level ope 阅读全文
posted @ 2012-03-03 20:14 emily1314 阅读(260) 评论(0) 推荐(0) 编辑
 
摘要: 最近一直在读《android游戏编程之从零开始》,文章写的不错,感觉作者毫不吝啬的讲述了自己开发所学知识与遇到的问题,读后很有收获。在此整理下,第五章——游戏开发实战的笔记,学习巩固开发游戏的整体流程。 一、用到的是SurfaceView游戏框架 由于游戏中会定期更新画布,以及双缓冲机制,所以SurfaceView更加适合游戏的开发。1、先复习下SurfaceView游戏开发的框架 public calssMySurfaceView() extends SurfaceView implements Callback,Runnable { private SufaceHolder sfh;//. 阅读全文
posted @ 2012-03-03 11:30 emily1314 阅读(4408) 评论(0) 推荐(0) 编辑