摘要: Custom Components: http://developer.android.com/guide/topics/ui/custom-components.html Extend an existing View class or subclass with your own class. 阅读全文
posted @ 2016-05-26 23:07 _Doing 阅读(254) 评论(0) 推荐(0)
摘要: The Canvas class holds the "draw" calls. To draw something, you need 4 basic components: A Bitmap to hold the pixels, a Canvas to host the draw calls 阅读全文
posted @ 2016-05-26 23:05 _Doing 阅读(183) 评论(0) 推荐(0)
摘要: View处理: 绘制(paint canvas path;tween等动画效果)、事件处理 参考整理自: Custom Components: http://developer.android.com/guide/topics/ui/custom-components.html http://www 阅读全文
posted @ 2016-05-26 23:00 _Doing 阅读(265) 评论(0) 推荐(0)
摘要: 代码来自:http://www.cnblogs.com/mandroid/archive/2011/02/26/1965428.html (XXX.AIDL自动生成的IXXX.java类中的Proxy内部类的Binder成员变量(mRemote)实际上是一个BinderProxy对象,即对应于C++ 阅读全文
posted @ 2016-05-26 22:59 _Doing 阅读(398) 评论(0) 推荐(0)
摘要: http://www.linuxidc.com/Linux/2012-07/66195.htm 服务端,客户端处在用户空间,而binder驱动处在内核空间。 服务器端。一个Binder服务器端就是一个Binder类的对象。当创建一个服务端Binder对象后,服务端内部就会开启一个线程,这个线程用于接 阅读全文
posted @ 2016-05-26 22:56 _Doing 阅读(311) 评论(0) 推荐(0)
摘要: Intent:一个表示“启动意图”的对象 Activity : getIntent()获取当前Activity唯一Intent 显式调用Intent Component Intent intent =newIntent(); ComponentName comp =newComponentName( 阅读全文
posted @ 2016-05-26 22:51 _Doing 阅读(152) 评论(0) 推荐(0)
摘要: 广播有两种注册方式:静态注册和动态注册。静态注册是在AndroidManifest中注册,在应用安装的时候会被系统解析,这种广播不需要应用启动就可以收到相应的广播。动态注册需要通过Context.registerReceiver()来注册,这种广播需要应用启动才能注册并接收广播。 实现不同组件之间的 阅读全文
posted @ 2016-05-26 22:50 _Doing 阅读(395) 评论(0) 推荐(0)
摘要: http://bbs.51cto.com/thread-1114378-1.html (API 3.0以后): 1.THREAD_POOL_EXECUTOR, 异步线程池 使用 首先创建一个继承自AsyncTask的MyAsyncTask类,然后调用 1 MyAsyncTask asynct = n 阅读全文
posted @ 2016-05-26 22:47 _Doing 阅读(9830) 评论(0) 推荐(0)
摘要: 资料摘自网络(侵删) Service Thread IntentService AsyncTask When to use ? Task with no UI, but shouldn't be too long. Use threads within service for long tasks. 阅读全文
posted @ 2016-05-26 22:45 _Doing 阅读(329) 评论(0) 推荐(0)
摘要: 用法 <疯狂android讲义3> 3.6 AsyncTask是一个Android SDK中轻量级的异步任务类,它在线程池中执行后台任务,把执行进度和执行结果返回给主线程,并在主线程更新UI,AsyncTask实质上是对Thread和Handler的封装,通过AsyncTask能够更方便地在执行后台 阅读全文
posted @ 2016-05-26 22:44 _Doing 阅读(261) 评论(0) 推荐(0)