package com.example.viewpage;import
java.util.ArrayList;import java.util.HashMap;import java.util.List;import
java.util.Map;import android.annotation....
分类:
其他好文 时间:
2014-05-26 19:22:48
阅读次数:
262
首先讲了如何将文件上传到SD卡中:
package com.example.lesson05_02;
import java.io.File;
import java.io.FileNotFoundException;
import org.apache.http.Header;
import android.app.Activity;
import android.os.Bun...
分类:
移动开发 时间:
2014-05-25 23:14:15
阅读次数:
426
一、XML的两种约束DTD和Schema
摘自IBM官网一段话命名空间。
二、shema文件
student.xsd
xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.org/student"
elementFormDefault="qualified">...
分类:
其他好文 时间:
2014-05-25 22:54:51
阅读次数:
385
0. 新建一个等待测试的业务类,并添加待测试的方法: a.
新建一个名为Junit2的android应用工程; b.
在android工程中新建一个名为Demo的类,并添加save和add两个方法,代码如下:package com.example.junit2;public
clas...
分类:
移动开发 时间:
2014-05-25 22:52:40
阅读次数:
403
点击textview打开新的activity(1)MainActivity.javapackagecom.example.android_textview_opennewactivity;
importandroid.os.Bundle;
importandroid.app.Activity;
importandroid.content.Intent;
importandroid.text.SpannableString;
importandroid.text.Spanned;
importan..
分类:
移动开发 时间:
2014-05-25 21:00:42
阅读次数:
440
(1)Mainactivity.javapackagecom.example.android_textview_rollingsubtitles;
importjava.sql.Wrapper;
importandroid.os.Bundle;
importandroid.app.Activity;
importandroid.text.Html;
importandroid.text.TextUtils;
importandroid.text.TextUtils.TruncateAt;
importan..
分类:
移动开发 时间:
2014-05-25 21:00:22
阅读次数:
424
首先声明一下,C++的内部类与Java内部类相似,但有一点不同,即C++需要一个显式的成员只想外部类对象,而Java内部类对象有一个隐式的成员指向外部类对象。给出两个example:1.C++内部类(原创来自:http://blog.chinaunix.net/uid-7769108-id-1667...
分类:
编程语言 时间:
2014-05-25 15:06:27
阅读次数:
256
Problem DescriptionIn your childhood, do you
crazy for collecting the beautiful cards in the snacks? They said that, for
example, if you collect all t...
分类:
其他好文 时间:
2014-05-25 14:05:37
阅读次数:
214
【题目】
Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).
You may assume that the intervals were initially sorted according to their start times.
Example 1:
Given intervals [1,3],[6,9], insert and mer...
分类:
其他好文 时间:
2014-05-25 12:56:43
阅读次数:
271
【题目】
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.
For example,
Given n = 3,
You should return the following matrix:
[
[ 1, 2, 3 ],
[ 8, 9, 4 ],
[ 7, 6, 5 ]
]
【题意】
给定整数n, 将1,2,3...nxn个数按螺旋旋转的方式填入n...
分类:
其他好文 时间:
2014-05-25 07:08:17
阅读次数:
235