Android APP开发
李彦龙
这个作者很懒,什么都没留下…
展开
-
android基础 1.1-2.14
(1-1)目前最火:云 端(1-2)抄袭+改良=创新Kernel--library(sqlite、webkit、Hal…),android runtime--AppFramework--App业务逻辑:如录像、拍照…,对一系列ioctl的封装(1-3)Android的网络操作就是j2se的网络操作AppFramework进行再封装为各组件(1-4)SDK即一原创 2014-04-14 11:58:36 · 408 阅读 · 0 评论 -
TextView
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); TextView tView=(TextView)findViewById(R.id.textview); SpannableSt原创 2014-04-22 16:45:34 · 460 阅读 · 0 评论 -
自定义控件,事件分发上传机制
用户交互设计师:提供想法及UI设计草图视觉设计师:想法——真正界面效果图不满足于标准化组件:没有做不到只有想不到分析清楚 ①UI呈现②UI事件API Guides——Animation and Graphics——Canvas and DrawableIn order to request an invalidate from a thread other than your原创 2014-04-21 20:22:20 · 463 阅读 · 0 评论 -
drawable
——A Drawable is a general abstraction for "something that can be drawn." the Drawable class provides a generic API for dealing with an underlying visual resource that may take a variety of forms. Unli原创 2014-04-22 09:59:32 · 421 阅读 · 0 评论 -
android基础 2.17-3.22
(2-17)开机守护进程zygote(孵化器)创建vm,vm再去加载app,Manifest.xml为整个App主入口(PackageManager.java)调试麻烦,更多用log编译class--dex--打包apk--选择target设备--上传apk--安装apk--启动主activity(2-18)DDMS:Dalvik Debug Monitor Service原创 2014-04-14 22:30:13 · 513 阅读 · 0 评论 -
StartedService与BoundService区别
①:启动StartedService的Activity消亡,service还存在;启动BoundService的Activity消亡,Service也消亡(点击startService开始打印i=0…,按back键(empty process),onUnBind被打印)②:StartedService和BoundService只要已实例化,就都不会再调用onCreate,但StartedSer原创 2014-04-20 20:38:21 · 682 阅读 · 0 评论 -
BoundService
——Kernel: Binder.c (drivers\staging\android) 软驱动——A service is "bound" when an application component binds to it by calling bindService(). A bound service offers a client-server interface that all原创 2014-04-20 11:22:15 · 418 阅读 · 0 评论 -
StartedService
——A Service is an application component that can perform long-running operations in the background and does not provide a user interface.——当一程序启动,就有一进程被操作系统创建,与此同时一线程也立刻运行,即主线程,如你需再创建线程,则新创建的线程即子线程原创 2014-04-19 17:19:43 · 444 阅读 · 0 评论 -
activity ConfigurationChanges
Ctrl+f12旋转屏幕打印:onSaveInstanceState、onPause、onStop、onDestroy、onCreate、onStart、onResume,有时对象较大或音乐正播放,如此Destroy Create就不合适ConfigurationChanges如:旋转屏幕、切换语言、……——————/android:configChanges="orientati原创 2014-04-18 16:15:15 · 477 阅读 · 0 评论 -
activity状态保存与恢复
Dialog不是通过Activity实现,弹出取消Dialog原Activity生命周期函数全都不会打印API Guide——User Interface——Dialogs启动局部Activity,原Activity生命周期函数onPause会被打印,onStop不会被打印,back调用onResume系统本身有保存状态机制,Home退出或直接杀死再返回,原状态还在,但某些时候不够,需原创 2014-04-18 14:20:39 · 556 阅读 · 0 评论 -
activity基础
(4-39)虽然Android使用Linux的内核,但其所用通信机制不同。Linux使用IPC(Interprocess Communication)如pipe、共享内存、信号灯、消息队列、Socket等,而Android取而代之为Binder机制activity间传值即Intent传递核心通过进程间通信机制,因activity有四种LaunchMode,其可能存在于不同进程间(某些系统级原创 2014-04-17 17:07:18 · 372 阅读 · 0 评论 -
Activity间互相传值、动态添加组件
(4-31)An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the phone, take a photo, send an email, or view a map.An I原创 2014-04-16 22:29:04 · 399 阅读 · 0 评论 -
android基础 3.23-3.30
(3-23)开机显示home主界面,呈现所有app,其为系统级程序,名为launcher,开机优先启动,本质也为activity,所在源码packages/apps/Launcher2/android-4.0.3/frameworks/base/core/java/android/包含app、database、util、view等,即framework(3-24)app资源目录介绍原创 2014-04-15 20:28:18 · 469 阅读 · 0 评论 -
Activity,Window和View的关系
启动一个activity的方法startActivity(),其核心方法attach()startActivity //activity.javaattach //activity.javaWindow mWindow=PolicyManager.makeNewWindow(this);sPolicy.makeNewWindow(context);// IPolicy接口,原创 2014-04-16 16:32:49 · 446 阅读 · 0 评论 -
android apk反编译
(2-15)dexdump -d classes.dex > lyl.txt 该方式反编译出为中间语言(smali),不易读apk解压后产生的如xml文件已经压缩加密,打开为二进制代码(只有raw下文件不会),故反编译目标:①.dex②.xmlapktool第三方软件:apktool1.5.2.tar.bz2、apktool-install-windows-r05-ibot.tar.b原创 2014-04-14 17:37:46 · 375 阅读 · 0 评论 -
Button,ToggleButton
——————/按下松开Button背景异原创 2014-04-24 08:00:20 · 557 阅读 · 0 评论