![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
文章平均质量分 65
iteye_10635
这个作者很懒,什么都没留下…
展开
-
ubuntu 10.04和10.10上下载编译环境配置android2.2-froyo
ubuntu 10.04和10.10上下载编译环境配置android2.2-froyo =========================================== sudo apt-get install git-core wgethttps://android.git.kernel.org/repo; chmod +x repo; sudo mv repo /usr/l...原创 2011-05-17 23:11:42 · 90 阅读 · 0 评论 -
android 设置线程的优先级
有两处API可以设置线程的优先级: (1)android.os.Process.setThreadPriority (int priority) 或 android.os.Process.setThreadPriority (int tid, int priority) priority:【-20, 19】,高优先级 -> 低...原创 2011-05-17 15:03:44 · 444 阅读 · 0 评论 -
StatusBar (状态栏)的架构(Android 2.3)
以前我的文章分析过 StatusBar上图标显示的流程,现在分析一下在 Android2.3中, StatusBar的架构,其实 StatusBar的实现方法还是进行了许多大的修正的,比如原来 StatusBar的操作都是在 Service进程中,现在许多图标显示更新等的操作都移到了应用进程中。 代码目录结构 : 主要位于两个目录中 1,frameworks/base...原创 2011-05-17 15:02:26 · 88 阅读 · 0 评论 -
对Task和Activity在ANDROID中的解释
android:allowTaskReparenting 用来标记Activity能否从启动的Task移动到有着affinity的Task(当这个Task进入到前台时)——“true”,表示能移动,“false”,表示它必须呆在启动时呆在的那个Task里。 如果这个特性没有被设定,设定到<application>元素上的allowTaskReparenting特性...原创 2011-03-25 10:39:08 · 110 阅读 · 0 评论 -
如何调用SQLITE工具查看数据库
Find and connect to a database You can find busybox on Benno’s site . If you can find the location of the .db file, you don’t really need busybox. Though i highly recommend it since it has many...原创 2011-02-10 14:33:24 · 280 阅读 · 0 评论 -
Android IPC机制详解
o IBinder接口 IBinder接口是对跨进程的对象的抽象。普通对象在当前进程可以访问,如果希望对象能被其它进程访问,那就必须实现IBinder接口。IBinder接口可以指向本地对象,也可以指向远程对象,调用者不需要关心指向的对象是本地的还是远程。 transact是IBinder接口中一个比较重要的函数,它的函数原型如下: virtual status_t tran...原创 2010-12-13 16:40:18 · 121 阅读 · 0 评论 -
android 多线程
在Android下面也有多线程的概念,在C/C++中,子线程可以是一个函数,一般都是一个带有循环的函数,来处理某些数据,优先线程只是一个复 杂的运算过程,所以可能不需要while循环,运算完成,函数结束,线程就销毁。对于那些需要控制的线程,一般我们都是和互斥锁相互关联,从而来控制线程 的进度,一般我们创建子线程,一种线程是很常见的,那就是带有消息循环的线程。 消息循环是一个很有用的线程方式,...原创 2010-12-11 17:47:06 · 54 阅读 · 0 评论 -
android中activity的四种加载模式
一、何为加载模式 在android的多activity开发中,activity之 间的跳转可能需要有多种方式,有时是普通的生成一个新实例,有时希望跳转到原来某个activity实例,而不是生成大量的重复的activity。加载 模式便是决定以哪种方式启动一个跳转到原来某个Activity实例。 二、加载模式有哪些以及如何配置 1、在android里面,...原创 2010-12-11 16:46:22 · 75 阅读 · 0 评论 -
如何手动编译一个APK
he good thing about building manually your apk is that you don’t have to name your resources directory to res, you can name it anything you want. You can find ant scripts in: \platforms\android...原创 2011-07-07 14:55:53 · 280 阅读 · 0 评论 -
android上一些方法的区别和用法的注意事项
Intent中的addflags()和setflags()的区别 addflags():Add additional flags to the intent (or with existing flags value). setflags():Set special flags controlling how this intent is handled. Android 配...原创 2011-07-07 10:03:08 · 178 阅读 · 0 评论 -
编译Android源码的全过程
在网上看到一篇编译android源码的文章,照着做挺行的, 通过参考网上的相关资料,我编译Android源码的步骤如下: * 1 我的系统是Ubuntu 8.04 * 2 系统上必须安装以下工具(摘自网上的资料): sudo apt-get install build-essential sudo apt-get ins...原创 2011-05-17 23:56:05 · 139 阅读 · 0 评论 -
android进程间通信:使用AIDL
欢迎阅读本文,你能关注本文,你知道你需要进程间通信、需要AIDL(以及Binder),那么可以默认你对这些概念已经有了一些了解,你(大致) 知道它们是什么,它们有什么用,所以为了节约大家的眼力和时间,在此我不复制粘贴网上泛滥的博客或者翻译冗长的android文档。 关于AIDL的介绍在文档:docs/guide/developing/tools/aidl.html ...原创 2011-05-17 15:07:23 · 79 阅读 · 0 评论