2013年10月22日

关于helloworld

摘要: 我们的helloworld是从一个源程序开始的,该源程序由程序员通过编译器创建并保存的文件,文件名就是hello.c。这个hello.c的源程序,实际上是有0和1组成的序列。每一个0和1都成为一位,这些位被组织成8个一组,成为字节。文件组织形式是以ascii标准来表示文本字符,这种方式实际上就是用一个唯一的字节大小的整数值来表示每一个字符。Hello.c就是按照这样的字节序列来保存在文件中。像he... 阅读全文

posted @ 2013-10-22 00:05 Tmacy 阅读(368) 评论(0) 推荐(0)

2013年6月20日

Android学习--Intent

摘要: Intent : Intent 是一个动作的完整描述,一种运行时的绑定机制,Intent中包含对Intent有兴趣的组件信息,如对动作的产生组件、接受组件和传递的数据信息。Android根据此Intent描述,在不同的组件之间传递消息,执行相关的动作,完成组件的调用。 Intent的基本构成结构:Intent对象抽象地描述了要执行的动作,主要内容包括了:组件名称(componentName)、动作(Action)、数据(data)、类别(category)、附加信息(Extra)和标志位(Flag)。组件名称(ComponentName对象),ComponentName包含两个String.. 阅读全文

posted @ 2013-06-20 14:02 Tmacy 阅读(341) 评论(0) 推荐(0)

2013年6月19日

Android学习--ListView和Tab

摘要: 产生一个ListView 其中包含很多items,第一个item启动另一个实现了Tab的Activity。关于tab的使用方式,参见下面bloghttp://oldshark.blog.163.com/blog/static/97167342011729112640919/http://erbo2008.iteye.com/blog/1542733源码框架如下:MainActivity.java: 1 package com.example.listviewdemo; 2 3 import android.os.Bundle; 4 import android.app.Activity; 5. 阅读全文

posted @ 2013-06-19 13:24 Tmacy 阅读(666) 评论(0) 推荐(0)

2013年6月18日

android学习笔记(1)

摘要: Android 开发框架 android系统是一个开放且体积庞大的系统,从功能上,将android开发分为移植开发移动电话系统,android应用开发和android系统开发三种。移动移植移动电话系统主要是由移动电话制造者进行开发,其产品就是android手机。公司,个人和团体一般进行android应用程序开发,就是制作各种android应用。android移植开发,主要集中在对于Linux内核中的相关设备驱动程序以及android本地框架中的硬件抽象层借口的开发。应用程序方面:一般而言,一个标准的android应用程序包括Activity、Broadcast Intent Receiver. 阅读全文

posted @ 2013-06-18 20:44 Tmacy 阅读(238) 评论(0) 推荐(0)

2013年4月16日

Exuberant ctags (http://ctags.sf.net) not found in PATH. Plugin is not loaded (转载)

摘要: Sven Keidel 2009-04-05 09:36:44 EDTThe bug depends on the vim plugin "taglist". The plugin requirers the"Exuberant ctags" wich you can download athttp://ctags.sf.net. After you have unziped it, you have to add the ctags location to the PATH variable, or set the Tlist_Ctags_Cmd va 阅读全文

posted @ 2013-04-16 09:23 Tmacy 阅读(346) 评论(0) 推荐(0)

2012年11月23日

判断机器的大小端问题

摘要: 思路:联合体union的存放顺序是所有成员都从低地址开始存放,利用该特性就可以轻松地获得了CPU对内存采用Little-endian还是Big-endian模式读写。 1 int checkCPU( ) 2 { 3 { 4 union w 5 { 6 int a; 7 char b; 8 } c; 9 c.a = 1;10 return(c.b ==1);11 }12 }另一种思路:int i... 阅读全文

posted @ 2012-11-23 19:16 Tmacy 阅读(182) 评论(0) 推荐(0)

2012年11月8日

windows7中找不到管理员账户administrator

摘要: 在windows系统中未激活administrator用户,在cmd命令行下使用:net user administrator /active:yes注销后就能看到administrator用户了 阅读全文

posted @ 2012-11-08 15:32 Tmacy 阅读(278) 评论(0) 推荐(0)

2012年9月21日

Android: “Path for project must have only one segment”

摘要: I found the cause of the problem: It turns out that when I specified the (only) Launch configuration for the project (Properties > Run/Debug Settings), I forgot to specify the Project nameandroid:theme="@android:style/Theme.Dialog" 将一个Activity显示为能话框模式 android:theme="@android:style/ 阅读全文

posted @ 2012-09-21 20:50 Tmacy 阅读(812) 评论(0) 推荐(0)

linux ubuntu下配置了多个jdk时,应该如何切换

摘要: 在linux ubuntu系统上,当编译android源码时,因为源码版本的不同所需的jdk的版本也不同,这就需要不断的更换jsk的版本。$ sudo update-alternatives --config java$ sudo update-alternatives --config javac 阅读全文

posted @ 2012-09-21 12:29 Tmacy 阅读(297) 评论(0) 推荐(0)

导航