`
rafale35
  • 浏览: 20614 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
  参考:http://source.android.com/source/initializing.html   Installing required packages (Ubuntu 12.04) Building on Ubuntu 12.04 is currently only experimentally supported and is not guaranteed to work on branches other than master.   $ sudo apt-get install git-core gnupg flex bison gperf build- ...
private void installNormal() { LogUtils.log(TAG, LogUtils.getThreadName()); setStatus(State.INSTALLING); String rootpath = Environment.getExternalStorageDirectory().getPath() + File.separator + Environment.DIRECTORY_DOWNLOADS + File.separator; ...

Ubuntu 11.10 初体验

今天给我到联想G460装上了ubuntu 11.10系统,以前11.04老有些问题,一直比较郁闷   一路上遇到好些问题,这里总结下, 装系统到步骤就不用说了,比较顺利 装好后,主要有以下几个问题需要注意的:   先要配置源,默认源那叫一个慢 sudo gedit /etc/apt/sources.list   记得先要备份下: sudo cp /etc/apt/sources.list /etc/apt/sources.list_bakcup1127 然后替换这些东西进去,163的源,比较快 ...

正则表达式

        public static boolean isValidFileName2(String fileName) { if (fileName == null || fileName.length() > 255) return false; else return fileName.matches("[^\\s\\\\/:\\*\\?\\\"<>\\|]*"); }      
转自:  http://blog.csdn.net/waji2000/article/details/4399611 Google开放了Android的源码 。 源码采用Git进行版本控制。 1. 首先,到  http://code.google.com/p/msysgit/downloads/list 下载Git-xxx.exe,下载完成后安装Git。 2. Android代码仓库的地址 http://git.source.android.com 访问该地址。 可以看到Android项目中,所有的包的列表。 单个包源码的下载方式: ...

中文Listview排序

    . import java.text.Collator; import java.util.Comparator; public class ChineseCharComp implements Comparator { @Override public int compare(Object o1, Object o2) { Collator cllator = Collator.getInstance(java.util.Locale.CHINA); if (cllator.compare(o1, o2) < ...
import android.app.TabActivity; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.RelativeLayout; import android.widget.TabHost; import android.widget.TabHost.OnTabChangeListener ...
转载:http://blog.163.com/bluez_gz/blog/static/126597429201071711654469/   Ubuntu下连接无线网的问题(女士不宜)   2010-08-17 23:06:54|  分类: 流水账 |  标签:无 ...

TextView 学习

自动横向滚动效果   <TextView android:id="@+id/directionTxt" android:singleLine="false" android:text="@string/testcn1" android:layout_marginLeft="20px" android:layout_width="280px" android:layout_height="40px" android:sc ...
      public Bitmap formatBitMapSize(Bitmap bitmapOrg, int twidth, int theight) { // 获取这个图片的宽和高 int width = bitmapOrg.getWidth(); int height = bitmapOrg.getHeight(); // 定义预转换成的图片的宽度和高度 int newWidth = twidth; int newHeight = theight; // 计算缩放率,新尺寸除原始尺寸 float scaleWidth = ((fl ...
      strcpy(s, t) char s[], t[]; { int i; i = 0; while ((s[i] = t[i]) != '\o') i++; } strcpy(s, t) char *s, *t; { while ((*s = *t) != '\0') { s++; t++; } } strcpy(s, t) char *s, *t; { while ((*s++ = *t++) != '\0') ; } strcpy(s, t) char *s, *t; { while ( ...
一纬数组 #include "stdio.h" void main() { int i,a[10]={9,4,6,2,7,0,1,5,3,8}; sort(a+1,10); for(i =0;i<=9;i++) { printf("%3d",*(a+i)); } } sort(p,n) int *p,n; { int i,t,*pj; for(i=1;i<n;i++) { for(pj= p+n-1;pj>p+i-1;pj--) { if(* ...
    package com.net.InetAddressTest; import java.net.*; /** * This program demonstrates the InetAddress class. Supply a host name as command line argument, or * run without command line arguments to see the address of the local host. * @version 1.01 2001-06-26 * @author Cay Horstmann ...
      package com.io.HrefMatch; import java.io.*; import java.net.*; import java.util.regex.*; /** * This program displays all URLs in a web page by matching a regular expression that describes the * <a href=...> HTML tag. Start the program as <br> * java HrefMatch URL ...
      package com.io.SerialCloneTest; /** @version 1.20 17 Aug 1998 @author Cay Horstmann */ import java.io.*; import java.util.*; public class SerialCloneTest { public static void main(String[] args) { Employee harry = new Employee("Harry Hacker", ...
Global site tag (gtag.js) - Google Analytics