2013年6月15日

SQLite使用方法

摘要: SQLite介绍:http://www.sqlite.org/SQLiteOpenHelper使用方法:·getReadableDatabase() ·getWriteableDatabase()·onCreate(SQLiteDatabase db)·onOpen(SQLiteDatabase db)·onUpgrade(SQLiteDatabase db,int oldVersion,int newVersion)·close()main.xml:<?xml version="1.0" encoding= 阅读全文

posted @ 2013-06-15 23:55 leihupqrst 阅读(289) 评论(0) 推荐(0)

Handler的使用(二)

摘要: main.xml:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" ><T 阅读全文

posted @ 2013-06-15 23:50 leihupqrst 阅读(140) 评论(0) 推荐(0)

Handler的使用(一)

摘要: 程序一:public class MainActivity extends Activity { private Button startButton = null; private Button endButton = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); startButton = (Button)findViewById(R.id.s... 阅读全文

posted @ 2013-06-15 23:46 leihupqrst 阅读(148) 评论(0) 推荐(0)

progressbar

摘要: main.xml:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" ><T 阅读全文

posted @ 2013-06-15 23:36 leihupqrst 阅读(206) 评论(0) 推荐(0)

简单程序用于熟悉Activity生命周期

摘要: FirstActivity.javapublic class FirstActivity extends Activity { /** Called when the activity is first created. */ private Button myButton; @Override public void onCreate(Bundle savedInstanceState) { System.out.println("FirstAcvity ---> onCreate"); super.onCreate(savedInstan... 阅读全文

posted @ 2013-06-15 22:23 leihupqrst 阅读(164) 评论(0) 推荐(0)

Activity的生命周期

摘要: 官方提供的Activity生命周期流程图:官方提供的Activity生命周期一般流程表:MethodDescriptionKillable?NextonCreate()Called when the activity is first created. This is where you should do all of your normal static set up: create views, bind data to lists, etc. This method also provides you with a Bundle containing the activity' 阅读全文

posted @ 2013-06-15 22:16 leihupqrst 阅读(142) 评论(0) 推荐(0)

导航