自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 收藏
  • 关注

原创 ubuntu12.04下载Android源代码

 参考: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 notguaranteed to ...

2012-12-22 22:59:38 112

原创 一般情况下安装APK

private void installNormal() { LogUtils.log(TAG, LogUtils.getThreadName()); setStatus(State.INSTALLING); String rootpath = Environment.getExternalStorageDirectory().getP...

2012-10-11 20:23:19 128

原创 Ubuntu 11.10 初体验

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

2011-11-27 18:38:52 151

原创 正则表达式

     public static boolean isValidFileName2(String fileName) { if (fileName == null || fileName.length() > 255) return false; else return fileName.matches("[^\\s\\\\/:\\*\\...

2011-08-31 00:06:47 76

原创 [转]在Windows下批量下载Android源码

转自: http://blog.csdn.net/waji2000/article/details/4399611Google开放了Android的源码 。 源码采用Git进行版本控制。1. 首先,到 http://code.google.com/p/msysgit/downloads/list下载Git-xxx.exe,下载完成后安装Git。...

2011-08-28 17:38:30 100

原创 中文Listview排序

  .import java.text.Collator;import java.util.Comparator;public class ChineseCharComp implements Comparator { @Override public int compare(Object o1, Object o2) { Coll...

2011-08-15 10:10:49 133

原创 Android自定义TAB选项卡

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.widg...

2011-07-27 15:19:31 279

原创 Ubuntu网络图标丢失

转载:http://blog.163.com/bluez_gz/blog/static/126597429201071711654469/ Ubuntu下连接无线网的问题(女士不宜)  2010-08-17 23:06:54|  分类: ...

2011-07-04 22:20:32 164

原创 TextView 学习

自动横向滚动效果  <TextView android:id="@+id/directionTxt" android:singleLine="false" android:text="@string/testcn1" android:layout_marginLeft="20px" android:layout_width="280px" a..

2011-03-27 22:22:04 72

原创 Android 一些工具类/方法收藏

   public Bitmap formatBitMapSize(Bitmap bitmapOrg, int twidth, int theight) { // 获取这个图片的宽和高 int width = bitmapOrg.getWidth(); int height = bitmapOrg.getHeight(); // 定义预转换成的图片的宽度和高度...

2010-12-15 17:15:44 66

原创 C语言_字符串指针学习笔记1

   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...

2010-10-24 17:12:06 101

原创 C语言_冒泡排序(指针)

一纬数组#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,...

2010-10-15 17:44:11 615

原创 InetAddressTest 打印出指定网址的IP地址

  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 ar...

2010-07-06 15:48:20 210

原创 HrefMatch 匹配某网页上面所有网址并打印

   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 des...

2010-07-06 15:29:24 173

原创 SerialCloneTest 对象利用流方式clone

   package com.io.SerialCloneTest;/** @version 1.20 17 Aug 1998 @author Cay Horstmann*/import java.io.*;import java.util.*;public class SerialCloneTest{ public st...

2010-07-06 15:09:00 129

原创 ObjectStreamTest 对象序列化 对象流

   package com.io.ObjectStreamTest;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.ObjectInputStream;import java.io.ObjectOutputStream;import java.io.Se...

2010-07-06 14:58:58 140

原创 TextFileTest_打印流用法

 *package com.io.TextFileTest;import java.io.*;import java.util.*;/** * @version 1.12 2007-06-22 * @author Cay Horstmann */public class TextFileTest{ public static void mai...

2010-07-06 14:34:30 127

原创 RandomFileTest

JAVA2 核心技术 例子package com.io.RandomFileTest;import java.io.DataInput;import java.io.DataOutput;import java.io.DataOutputStream;import java.io.FileOutputStream;import java.io.IOException...

2010-07-06 14:19:03 128

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除