博客首页
注册
建议与交流
排行榜
加入友情链接
推荐
投诉
搜索:
帮助
goandroid
专注Android开发与系统学习
goandroid.cublog.cn
管理博客
发表文章
留言
收藏夹
博客圈
音乐
相册
文章
· 新闻
· 系统
· Makefile
· 编程
· 虚拟机
· Java工具
· 商业模式
· 软件下载
首页
关于作者
邮箱:loughsky@sina.com
||
<<
>>
||
我的分类
最新文章
·
delvik的一些相关文档
·
Dalvik Optimization and..
·
Android 应用程序快速启动..
·
Dalvik虚拟机简介
·
Read Android CPU info
·
Android: Get IP address
·
在ubuntu9.10下build and..
·
Ubuntu9.10下编译Android..
·
android 无线启动过程分析
·
定制你自己的桌面--- lau..
最新留言
·
本站网友
曙海嵌入式学院提供以下课..
·
本站网友
HI,兄弟,你在上海么
互联..
·
本站网友
你好。我深圳的一家猎头公..
·
wangxixi
在金融风暴面前,不少职场..
·
songxixi
你好,你的文章不错,我可以..
·
本站网友
兄弟这么多android的学习文..
最新评论
·
如果要移除系统通讯功能,..
·
支持资源共享
·
真垃圾,你的大部分文章都..
·
不行的,編譯都通不過!!..
·
拷贝 myandroid\out\targe..
·
看看是不是permission den..
·
敢说我国天朝是不法分子?..
·
Excellent
·
FLOOR OWNER GOOD
·
怎么我下载后根目录没有ma..
最新收藏
·
steve's space
·
Android共享软件下载
·
www.anddev.org/
·
ysl的程式天堂
·
Android 实验室's Archiver
·
Android中文手册
·
Android 开发者论坛
·
Android - An Open Hands..
统计信息
·
总访问量:175496
·
文章个数:267
·
评论条数:25
·
留言条数:6
·
网友推荐:
delvik的一些相关文档
<DIV><A href="http://www.netmite.com/android/mydroid/dalvik/docs/">http://www.netmite.com/android/mydroid/dalvik/docs/</A></DIV>
查看全文
发表于:2010-04-09 ┆
阅读(156)
┆
评论(0)
Dalvik Optimization and Verification With dexopt
<DIV> <P>The Dalvik virtual machine was designed specifically for the Android mobile platform. The target systems have little RAM, store data on slow internal flash memory, and generally have the performance characteristics of decade-old desktop systems. They also run Linux, which provides virtual memory, processes and threads, and UID-based security mechanisms. <P>The features and limitations caused us to focus on certain goals: <UL> <LI>Class data, notably bytecode, must be shared betwee……
查看全文
发表于:2010-04-09 ┆
阅读(240)
┆
评论(0)
Android 应用程序快速启动的秘诀
<DIV><SPAN class=Apple-style-span style="WORD-SPACING: 0px; FONT: medium Simsun; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px"><SPAN class=Apple-style-span style="FONT-SIZE: 12px; LINE-HEIGHT: 20px"> <P style="FO……
查看全文
发表于:2010-04-08 ┆
阅读(376)
┆
评论(0)
Dalvik虚拟机简介
<DIV><SPAN class=Apple-style-span style="WORD-SPACING: 0px; FONT: 12px Simsun; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px"><SPAN class=Apple-style-span style="COLOR: rgb(68,68,68); LINE-HEIGHT: 18px; FONT-FAMILY……
查看全文
发表于:2010-04-08 ┆
阅读(259)
┆
评论(0)
Read Android CPU info
<DIV> <P><B style="BACKGROUND-COLOR: #ffff66; COLOR: black">Android</B> CPU info. can be retrieved by reading of "/<B style="BACKGROUND-COLOR: #99ff99; COLOR: black">proc</B>/cpuinfo". So, it's just a very little bit of modification on <A href="http://android-er.blogspot.com/2009/09/read-android-os-version.html"><B style="BACKGROUND-COLOR: #a0ffff; COLOR: black">Read</B><FONT color=#0066cc> </FONT><B style="BACKGROUND-COLOR: #ffff66; COLOR: black">Android</B><FONT color=#0066cc> OS version</FON……
查看全文
发表于:2009-12-15 ┆
阅读(681)
┆
评论(0)
Android: Get IP address
<P>1, Connected via WIFI<BR>WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE);<BR>WifiInfo wifiInfo = wifiManager.getConnectionInfo();<BR>int ipAddress = wifiInfo.getIpAddress();<BR><BR>2, Connected via GPRS<BR>public String getLocalIpAddress() <BR>{<BR> try <BR> {<BR> for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) <BR> &nbs……
查看全文
发表于:2009-12-15 ┆
阅读(342)
┆
评论(0)
在ubuntu9.10下build android
<DIV> <P>I was devastated by <B style="COLOR: black; BACKGROUND-COLOR: #ffff66">Android</B> these days<BR>let me organize some noticeable points here<BR>(ubuntu 8.10 is used)</P> <P><SPAN id=more-3614></SPAN><SPAN style="COLOR: #800080"><STRONG>1. download <B style="COLOR: black; BACKGROUND-COLOR: #ffff66">Android</B> source code (cupcake)</STRONG></SPAN></P> <P>create home:<BR>:mkdir AndroidHome</P> <P>install Git:<BR>:sudo apt-get install git-core</P> <P>install Repo:<BR>:curl http://<B s……
查看全文
发表于:2009-12-03 ┆
阅读(776)
┆
评论(1)
Ubuntu9.10下编译Android源码
<DIV>在 Ubuntu8.04下,应该一切很顺利,但是我装的是9.10版本,所以会有些问题。</DIV> <DIV>先装jdk1.5,网上说1.6的有点小问题,所以我没装1.6,选择了1.5. 然后一边装必须的一些程序,apt-get install **** 很多乱七八糟的,网上能搜到,然后一边下载android源码。</DIV> <DIV> </DIV> <DIV>源码的下载需要git,curl和repo,git和curl可以直接用apt-get install git-core curl就可以了</DIV> <DIV> </DIV> <DIV>然后下载repo</DIV> <DIV>curl <A href="http://android.git.kernel.org/repo">http://android.git.kernel……
查看全文
发表于:2009-12-03 ┆
阅读(849)
┆
评论(0)
android 无线启动过程分析
<DIV> <DIV id=art style="MARGIN: 15px">开机过程中无线<B style="COLOR: black; BACKGROUND-COLOR: rgb(153,255,153)">模块</B>的初始化过程:<BR>rild 调用参考实现 Reference-ril.c (hardware\ril\reference-ril) 中的函数:<BR>const RIL_RadioFunctions *RIL_Init(const struct RIL_Env *env, int argc, char **argv)<BR> ret = pthread_create(&s_tid_mainloop, &attr, mainLoop, NULL);<BR>static void *mainLoop(void *param)<BR> ret = at_open(fd, onUnsolicited);<BR> ……
查看全文
发表于:2009-11-24 ┆
阅读(673)
┆
评论(0)
定制你自己的桌面--- launcher小觑
<DIV> launcher也就是我们的Home,可以简单地把它理解为一个简化的linux GUI。作为一个GUI它首先必须完成它最本分的功能,就是它必须能提供对所有应用程序(CATEGORY_LAUNCHER)的映射;不过作为一个 GUI,它除了做好本分之外还必须是符合大众审美的美女(wallpaper);另外还必须具有良好的交互性,没有良好的交互性就像你对一位美女殷勤了半天,她却直接对无视,那结果是比较糟糕的~~ <BR> 所谓兵马未动,粮草先行,在了解launcher的细节之前,我们首先需要完成对一些知识的扫盲。当然这些知识我们都可以在SDK guide大叔……
查看全文
发表于:2009-11-24 ┆
阅读(806)
┆
评论(0)
Android的IPC机制Binder的各个部分
<DIV><FONT size=1><FONT face=Arial> </FONT><FONT face=黑体> </FONT><B><FONT face=黑体>第一部分Binder的组成</FONT></B><BR></FONT><FONT color=#000000><FONT face="宋体 "><FONT size=3>1.1 </FONT><FONT face="宋体, MS Song "><A title=驱动 style="COLOR: #000000" href="http://driver.it168.com/" target=_blank>驱动</A>程序部分</FONT></FONT></FONT><FONT color=#000000><FONT face="宋体 ">驱动程序的部分在以下的文件夹中:</FONT></FONT><BR><U><FONT color=#0000ff><FONT fa……
查看全文
发表于:2009-11-13 ┆
阅读(862)
┆
评论(0)
Android Porting Experiment
<DIV>Recently, I have spent 3 working days on porting Android to our PXA270 HW platform <BR>Brief Condition: <BR>HW: <BR>PXA270 with PCI and IDE support <BR>SW: <BR>Linux 2.6.21 source code with our own driver (for PCI & IDE) <BR>Linux 2.6.23 source code with android patch <BR><BR>Method: <BR>1. porting customized driver from 2.6.21 to 2.6.23 <BR>2. porting android patch to 2.6.21 <BR><BR>First of all, I must to explain what Android Kernel require. <BR>1. EABI support <BR>config: <BR>CONFIG_……
查看全文
发表于:2009-11-09 ┆
阅读(427)
┆
评论(0)
Android:制作system.img(yaffs2)映像
<DIV>1. 将android system.img 中文件打包到PC <BR><BR>bash-3.2# mount <BR> rootfs on / type rootfs (rw) <BR> /dev/pts on /dev/pts type devpts (rw) <BR> /proc on /proc type proc (rw) <BR> /sys on /sys type sysfs (rw) <BR> /dev/block/mtdblock0 on /system type yaffs2 (rw,nodev,noatime,nodiratime) <BR> /dev/block/mtdblock1 on /data type yaffs2 (rw,nodev,noatime,nodiratime) <BR><BR>由于system.img是挂靠到 /dev/block/mtdblock0 的 <BR……
查看全文
发表于:2009-11-09 ┆
阅读(837)
┆
评论(0)
Simple guid for porting android kernel
<DIV class=blog_content>作者:刘旭晖 colorant@163.com 转载请注明出处 <BR>http://blog.csdn.net/colorant/ <BR><BR>移植Android的kernel到实际的硬件平台上,很多人很早就做过这件事了,不过相关的文档和经验总结不多,我就写一个吧,也为了自己记录一下大致的流程,以后好继续。 <BR>1 Android内核Porting相关背景知识 <BR>1.1 运行平台 <BR>Google的Android平台到今天为止(2008-2-27),应用层部分还是以二进制的Binary的形式发布的,……
查看全文
发表于:2009-11-09 ┆
阅读(537)
┆
评论(0)
分析Android 根文件系统启动过程(init守护进程分析)
<DIV>在Android系统启动时,内核引导参数上一般都会设置 “init=/init”,这样的话,如果内核成功挂载了这个文件系统之后,首先运行的就是这个根目录下的init程序 。这个程序所了什么呢? 我们只有RFSC(Readthe Fucking Source code)!!<BR>init程序源码在Android官方 源码的system/core/init中,main在init.c里。我们的分析就从main开始。</DIV> <DIV>init: </DIV> <DIV>(1)安装SIGCHLD信号 。(如果父进程不等待子进程结束,子进程将成为僵尸进程(zombie)从而占用系统资源。因此需要对SIGCHLD信号做出处理,回收僵尸进程的资源,……
查看全文
发表于:2009-11-09 ┆
阅读(380)
┆
评论(0)
Android init 启动过程分析
<DIV> <P>分析android的启动过程,从内核之上,我们首先应该从文件系统的init开始,因为 init 是内核进入文件系统后第一个运行的程序,通常我们可以在linux的命令行中指定内核第一个调用谁,如果没指定那么内核将会到/sbin/,/bin/ 等目录下查找默认的init,如果没有找到那么就报告出错。<BR>下面是曾经用过的几种开发板的命令行参数:<BR>S3C2410 启动参数:<BR>noinitrd<BR>root=/dev/nfs nfsroot=192.168.2.56:/nfsroot/rootfs <BR>ip=192.168.2.188:192.168.2.56:192.168.2.56:255.255.255.0::eth0:on<BR>conso……
查看全文
发表于:2009-11-09 ┆
阅读(948)
┆
评论(0)
Android Building System 分析
想要了解一個系統,我常會從 makefile 或是 building system 下手, 以了解系統組成元素為何? 目錄結構為何? 對於 <a href="http://heaven.branda.to/%7Ethinker/GinGin_CGI.py/show_kw_docs/Android">Android</a> ,我也不例外。 透過了解 building system ,我們能知道如何新增、修改、刪除程式, 並保有完整性,順利編譯出結果。 <p> </p><h2> 設定檔 </h2><p> <a href="http://heaven.branda.to/%7Ethinker/GinGin_CGI.py/show_kw_docs/Android">Android</a> building system 包括幾種重要的設定檔, </p><ul><li> <a href="ht……
查看全文
发表于:2009-05-26 ┆
阅读(3293)
┆
评论(1)
JNI與Android VM之關係
<FONT size=3> </FONT><SPAN style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: line; FONT-FAMILY: '新細明體','serif'; LETTER-SPACING: 0.2pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">由於</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: line; LETTER-SPACING: 0.2pt; mso-fareast-font-family: 新細明體">Android</SPAN><SPAN style="FONT-SIZE: 10.5pt; LAYOUT-GRID-MODE: line; FONT-FAMILY: '新細明體','serif'; LETTER-SPACING: 0.2pt; mso-ascii-font-……
查看全文
发表于:2009-05-11 ┆
阅读(1388)
┆
评论(0)
Android 上的原生 OpenGL/ES
<BLOCKQUOTE>surface manager 可以準備一塊 surface,把 surface 的 fd (一塊 ashmem 記憶體) 傳給一個 app,讓 app 可以在上面作畫。有了這層理解,我們對 android 可以有更自由的發揮,例如,可以不改一行 cairo 的程式碼,就利用 cairo 與 c++ 寫出一個會動的時鐘</BLOCKQUOTE>而 Surface manager 顧名思義,就是管理邏輯上眾多的 surface,其底層對應於 OpenGL|ES 的實做。透過 surface 的處理,我們可讓像 <A href="http://cgit.freedesktop.org/xorg/app/fdclock/"><FONT color=#ffffff>fdclock</FONT></A> 這樣原生 (native) 的 C ……
查看全文
发表于:2009-05-11 ┆
阅读(1902)
┆
评论(0)
Android模拟器
<P><SPAN lang=EN-US>ndroid</SPAN><SPAN style="FONT-FAMILY: 宋体">中提供了一个模拟器来模拟</SPAN><SPAN lang=EN-US><STRONG><A href="http://www.top-e.org/jiaoshi/html/?186.html" target=_blank><SPAN style="COLOR: #ff0000">ARM</SPAN></A></STRONG></SPAN><SPAN style="FONT-FAMILY: 宋体">核的移动设备。</SPAN><SPAN lang=EN-US>Android</SPAN><SPAN style="FONT-FAMILY: 宋体">的模拟器是基于</SPAN><SPAN lang=EN-US>QEMU</SPAN><SPAN style="FONT-FAMILY: 宋体">开发的,</SPAN><SPAN lang=EN-US>QEMU</SPAN><SPAN style=……
查看全文
发表于:2009-05-11 ┆
阅读(961)
┆
评论(0)