智慧 + 毅力 = 无所不能

正确性、健壮性、可靠性、效率、易用性、可读性、可复用性、兼容性、可移植性...
随笔 - 991, 文章 - 0, 评论 - 27, 阅读 - 341万

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  Android

摘要:转自:http://www.androidsdn.com/article/show/137由于android系统中应用程序之间不能共享内存。因此,在不同应用程序之间交互数据(跨进程通讯)就稍微麻烦一些。在android SDK中提供了4种用于跨进程通讯的方式。这4种方式正好对应于android系统中4种应用程序组件:Activity、Content Provider、Broadcast和Service。 其中Activity可以跨进程调用其他应用程序的Activity; Content Provider可以跨进程访问其他应用程序中的数据(以Cursor对象形式返回),当然,也可以对其他应用.. 阅读全文

posted @ 2013-03-22 11:19 Bill Yuan 编辑

摘要:转自:http://blog.csdn.net/ccccdddxxx/article/details/8000651简介:Android 是一款基于 Linux 内核,面向移动终端的操作系统。为适应其作为移动平台操作系统的特殊需要,谷歌对其做了特别的设计与优化,使应用程序关闭但不退出,并由操作系统进行进程的回收管理。本文在 Application Framework 与 Linux 内核两个层次上,以进程为粒度,对 Android 操作系统的进程资源回收机制进行了剖析。读者可以从本文获得对 Android 应用程序的生存周期的进一步理解,从而更加合理、高效地构建应用程序。Android APP 阅读全文

posted @ 2013-03-22 11:02 Bill Yuan 编辑

摘要:转自:http://blog.csdn.net/ccccdddxxx/article/details/7016547ActivityAndroid中,Activity是所有程序的根本,所有程序的流程都运行在Activity之中,Activity具有自己的生命周期(见http://www.cnblogs.com/feisky/archive/2010/01/01/1637427.html,由系统控制生命周期,程序无法改变,但可以用onSaveInstanceState保存其状态)。对于Activity,关键是其生命周期的把握(如下图),其次就是状态的保存和恢复(onSaveInstanceSta 阅读全文

posted @ 2013-03-22 10:39 Bill Yuan 编辑

摘要:android.permission.ACCESS_CHECKIN_PROPERTIES 允许读写访问”properties”表在checkin数据库中,改值可以修改上传( Allows read/write access to the “properties” table in the checkin database, to change values that get uploaded) android.permission.ACCESS_COARSE_LOCATION 允许一个程序访问CellID或WiFi热点来获取粗略的位置(Allows an application to... 阅读全文

posted @ 2013-03-22 10:28 Bill Yuan 编辑

摘要:转自:http://blog.csdn.net/ccccdddxxx/article/details/78430701、要弄清楚这个问题,首先需要弄明白什么是implicit(隐藏) intent什么是explicit(明确) intent。Explicit Intent明确的指定了要启动的Acitivity,比如以下Java代码:Intent intent= new Intent(this, B.class) Implicit Intent没有明确的指定要启动哪个Activity,而是通过设置一些Intent Filter来让系统去筛选合适的Acitivity去启动。2、intent到底发. 阅读全文

posted @ 2013-03-22 10:25 Bill Yuan 编辑

摘要:File.documentsDirectory,File.userDirectory,File.desktopDirectory 等。可以保存大的数据,如图片,视屏,和临时文件。访问这些文件的全选是:<uses-permision android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>,在使用之前,确认是否有sd卡:If(File.userDirectory==true) //proceed with saving data/* 一下变量所指的目录: App:/ File.applicationDir 阅读全文

posted @ 2013-03-07 16:23 Bill Yuan 编辑

摘要: 阅读全文

posted @ 2010-10-15 11:38 Bill Yuan 编辑

摘要:// 相对于给定ID控件android:layout_above 将该控件的底部置于给定ID的控件之上;android:layout_below 将该控件的底部置于给定ID的控件之下;android:layout_toLeftOf 将该控件的右边缘与给定ID的控件左边缘对齐;android:layout_toRightOf 将该控件的左边缘与给定ID的控件右边缘对齐;android:layout_... 阅读全文

posted @ 2010-09-16 11:36 Bill Yuan 编辑

点击右上角即可分享
微信分享提示