您的位置:首页 > 移动开发

杂项8

2011-08-08 16:39 78 查看
why LoadingActivity invoke  onSaveInstanceState , it is finished by killing process .

why register also invoke it .

You do not have to store view states, as they are stored automatically.

onRestoreInstanceState This method is called after onStart() when the activity is being re-initialized from a previously saved state

Context ActivityManager info  . infomation in process and information in systemserver process 

File Object which file not exist will cause strange issue 
http://www.eoeandroid.com/thread-54083-1-1.html
webview telephone 

bind three type , extend bind(only in one process ) ,use message , use aidl 

generate onbind 

binder parcel

bindService should 同步get 一个对象,但是现在用了一个 connection call back

xcopy   E:\ddz\AndroidManifest.xml  E:\eclipsespace\newAnd\GoldFull /S/Y/F/C

复制 几个 xml file

layout 找不到 ,重新builder

Android 为何只让结束单个Activity
http://www.cnmsdn.com/html/201101/1295516531ID9286.html
 android:background="@null"

 android内核分析---low memory killer 

 http://blog.chinaunix.net/space.php?uid=9185047&do=blog&cuid=2522052

 

 一个Process 只能使用16M内存 ,有人说java 使用过的内存,不能被C 使用。所有分配图片时候,

 http://stackoverflow.com/questions/1955410/bitmapfactory-oom-driving-me-nuts

 Bitmap data is not allocated in the VM heap. There is a reference to it in the VM heap (which is small), but the actual data is allocated in the Native heap by the underlying Skia graphics library.

 The Nat?ve heap is shared between running applications, so the amount of free space depends on what other applications are running and their bitmap usage. But, given that BitmapFactory will not return, you need a way to figure out if 

the call is going to succeed before you make it.

 getNativeHeapFreeSize() 

 I think you're deep into undocumented behavior here-- you wouldn't be able to count on any answer you get being consistent across different Android versions or devices.

 http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon?answertab=active#tab-top

 

 LauncherActivity why publish ?

 

 shop ananysiys data 

 

 遥控

 

 Integrated Circuit

 http://hi.baidu.com/sljsjw/blog/item/c77f02017836a40e1c95834a.html

 非接触式IC卡(射频卡)

 这个电子标签可能就是一个RFID tag

 

 

 Session Initiation Protocol 

 Device Administration

 PowerManager

wifiLock

UMTS  UMTS的英文全称为Universal Mobile Telecommunication System 3G

WiMax

 

 why logon null pointer ,找不到 id ,rebuild 往往就可以了

 

07-04 13:52:15.017: ERROR/ActivityThread(13688): Activity ronco.ddz.Game has leaked ServiceConnection com.javgame.goldisland.manager.AccessManager$1@44944238 that was originally bound here

07-04 13:52:15.017: ERROR/ActivityThread(13688): android.app.ServiceConnectionLeaked: Activity ronco.ddz.Game has leaked ServiceConnection com.javgame.goldisland.manager.AccessManager$1@44944238 that was originally bound here

需要把它关掉 不连接了

leakwindow 

HttpServiceTask , 合并task ,

default option 。

 static option
http://blog.csdn.net/xieqibao/article/details/6584049
launch
http://gqdy365.iteye.com/blog/861047
打牌输了 为什么? 失败促反省,胜利促信心

判断 决断

view  

Parcelable onSaveInstanceState ()

android 复原 ,系统复原

windows feture and windowLayout 可以设置 window 显示。

也可以用 style ,dialog  ,activity  和 view 都可以用style 

popup window ?

最当前的activity 。

toast 弹出窗口

管理 ,就是 view 加入manager ,窗口 只是管理本地view ,

可以设置style ,或者 背景颜色

Window  a top-level window look and behavior policy

1 policy 管理 ,作为最顶层的view ,提供背景,titile ,以及事件处理等。具体view 可以用content view 来处理。

Activity decoder view 。

popupwindow 就没有 window 了。

07-06 09:06:43.988: INFO/ActivityManager(59): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.javgame.goldisland/.LogoActivity }

07-06 09:06:45.499: DEBUG/AndroidRuntime(733): Shutting down VM

07-06 09:06:45.667: INFO/ActivityManager(59): Start proc com.javgame.goldisland for activity com.javgame.goldisland/.LogoActivity: pid=740 uid=10036 gids={3003, 1006, 1015}

07-06 09:06:48.097: INFO/ActivityManager(59): Displayed activity com.javgame.goldisland/.LogoActivity: 2511 ms (total 2511 ms)

每个view创建一个viewRoot(这是逻辑上的东西,用来负责view的事件处理和逻辑处理,并和WindowsManagerService建立联系),而在WindowManagerImpl里,会维护viewRoot的数组。

view 是纯java windowManager 才是真正的处理。管理显示事件传送

每个view 的构造函数,一 1 属性 2 default style Attributes. 可以改变view 的状况 。其实 还是属性列表 。

我们可以改变 1 theme ,2 改变 default style Attributes 的值。我们可以直接定义一个 style Attributes ,传进去,而不用

internal 的 com.android.internal.R.attr.textViewStyle 。

但是有些 属性,我们还是不好访问。我们只能修改那些public ,而不是 interna 的 att 。

theme 可以 任意设置。肯定会被用到。

TypedArray obtainStyledAttributes(

            AttributeSet set, int[] attrs, int defStyleAttr, int defStyleRes) {

int[] attrs ,是View 可以设置的属性列表,无法更改 

        defStyleAttr ,定义 style 的属性。  defStyleRes ,直接style ,一般为 0 ,少用。 

            

Dialog(Context context, int theme)

Dialog 不是组件,需要自己定义 theme 。而且无法改变属性 。

但是 popupwindow ,定义 和一个 view 一样

ViewStub  这个类大概意思是用ViewStub类和在XML文件里面指定的布局资源文件关联起来,让布局资源文件在需要使用的时候再加载上去。主要作用是性能优化,什么时候用什么时候加载,

ViewTreeObserver  监听view 。

一个是资源,主要是界面资源finish ,服务器端管理。

一个 是java null 。

Toast 类似popup window  ,不需要activiy ,自己注册到窗口,放在最前面。can set view ,but no focus 。

activity propery and Intent flag 冲突。

WindowManager.LayoutParams wl = w.getAttributes();

FLAG_ACTIVITY_REORDER_TO_FRONT 可以把某个activity bring to front 。

flag 可以 动态设置 activity 属性

UI 线程 ,异步 start activity ?

install 没有1.6

UI debug 
http://tech.it168.com/a2009/0505/274/000000274986.shtml
需要 mac 机器 ,mac os ,xcode  

Touch不支持垃圾收集。

Cocoa

 苹果的面向对象开发框架,用来生成 Mac OS X 的应用程序。主要的开发语言为 Objective-c, 一个c 的超集。 Cocoa 开始于1989年9月上市的NeXTSTEP 1.0,当时没有Foundation框架,只有动态运行库, 称为 kit, 最重要的是AppKit. 1993 

MID的重量少于300克,英特尔甚至称,MID可放入钱包中携带。MID采用4英寸到6英寸的显示屏,操作系统并非采用Windows,而是Linux,现在也有使用android系统的。MID与UMPC的区别是MID没有完整的PC功能,在尺寸上也只有5英寸大。

土耳其机器人

安腾(Itanium)处理器是构建在IA-64(Intel Architecture 64)

x86-64 可变指令长度的CISC(复杂指令集计算机,Complex Instruction Set Computer)

多年来,小型机坚守可靠性阵地,但是在性能方面可能也是心有余力不足吧,因为IBM的Power6是个双核处理器。而X86架构的服务器处理器,已经走到6核、8核、12核时代了。

英特尔至强

Apple Darwin 操作系统家族 NEXTSTEP, 类UNIX
http://zh.wikipedia.org/wiki/Apple_Darwin
苹果电脑的PowerPC架构 但苹果电脑自2005年起,将旗下电脑产品转用Intel CPU
http://baike.baidu.com/view/3194202.htm
越狱是指开放用户的操作权限,使得用户可以随意擦写任何区域的

运行状态,只有越狱成功后iphone的iphone)文件系统才处于可读写(rw)状态,可以安装和运行未经过官方认证的第三方程序、插件。

1988年,NeXT Software公司获得了Objective-C语言的授权,并开发出了Objective-C的语言库和一个名为NEXTSTEP的开发环境

NEXTSTEP/OPENSTEP环境成为苹果操作系统下一个主要发行版本OS X的基础。这个开发环境的该版本被苹果公司称为Cocoa。

apple pc 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息