import java.text.SimpleDateFormat;import java.util.Date;import android.content.ContentValues;import android.content.Context;import android.database.Cursor;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteOpenHelper;import android.util.Log;public class DBOpenHelper e Read More
posted @ 2012-12-17 18:48 愤怒的coder Views(166) Comments(0) Diggs(0)
1.String 和StringBuffer的区别 JAVA平台提供了两个类:String和StringBuffer,它们可以储存和操作字符串,即包含多个字符的字符数据。这个String类提供了数值不可改变的字符串。而这个StringBuffer类提供的字符串进行修改。当你知道字符数据要改变的时候你就可以使用StringBuffer。典型地,你可以使用StringBuffers来动态构造字符数据。2.说出ArrayList,Vector, LinkedList的存储性能和特性 ArrayList和Vector都是使用数组方式存储数据,此数组元素数大于实际存储的数据以便增加和插入元素,它们都.. Read More
posted @ 2012-09-09 17:32 愤怒的coder Views(130) Comments(0) Diggs(0)
闲来无事写了个仿墨迹天气的小软件~ 首先遇见了布局问题,下面的tabwidget里面放得到底是什么View Code <?xml version="1.0" encoding="utf-8"?><TabHost xmlns:android="http://schemas.android.com/apk/res/android"android:id="@android:id/tabhost"android:layout_width="match_parent"android:la Read More
posted @ 2012-08-27 10:09 愤怒的coder Views(399) Comments(0) Diggs(0)