原创 我的友情鏈接

51CTO博客開發51CTO下載中心 官方博客

原创 TabHost的使用

package cn.itcast.tabhost; import android.app.TabActivity; import android.content.Intent; import android.os.Bundle;

原创 Resources$NotFoundException

android.content.res.Resources$NotFoundException: Resource ID解決辦法android.content.res.Resources$NotFoundException: Resourc

原创 GridView的使用

public class MainActivity extends Activity {     private GridView gv_main;      @Override     protected void onCreate(Bu

原创 button

 使用button點擊事件時,根據佈局中的方法,一定要注意使用public void haha(View view){},千萬不能使用private。靠,鬱悶了我半天。

原创 svn安裝

 svn版本控制策略:拷貝-修改-合併 方案(svn,cvs採用)。 查看是否安裝成功:svnserve --version 建倉庫svnadmin create F:\software\repository\svn\xxx svn服務器

原创 MD5加密

  public class MD5Util {      public static String encode(String pwd) {         MessageDigest digest;         try {     

原创 Menu的使用

  @Override     public boolean onCreateOptionsMenu(Menu menu) {         MenuInflater inflater = getMenuInflater();      

原创 安卓ListView中CheckBox的使用(支持Item列表項的刪除,全選,全不選)

<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" an

原创 ListView的使用,獲取聯繫人數據

直接貼代碼:   public class QueryActivity extends Activity {     private EditText et;      @Override     protected void onCrea

原创 android intent和intent action大全

  1.Intent的用法: (1)用Action跳轉 1、使用Action跳轉,如果有一個程序的AndroidManifest.xml中的某一個 Activity的IntentFilter段中 定義了包

原创 我的友情鏈接

51CTO博客開發51CTO下載中心 官方博客

原创 TabHost的使用

package cn.itcast.tabhost; import android.app.TabActivity; import android.content.Intent; import android.os.Bundle;

原创 GridView的使用

public class MainActivity extends Activity {     private GridView gv_main;      @Override     protected void onCreate(Bu

原创 如何獲取SD卡的大小

public class DemoActivity extends Activity { /** Called when the activity is first created. */ @Override