国产在线视频2019最新视频,中文字幕免费国产精品,麻豆精品国产91久久久久久http://www.aygfsteel.com/Green-nut/Enjoy your job~zh-cnFri, 04 Jul 2025 19:34:09 GMTFri, 04 Jul 2025 19:34:09 GMT60android listview 禁止 itemclick時(shí)的高亮顯示http://www.aygfsteel.com/Green-nut/articles/349031.htmlfanxufanxuTue, 26 Apr 2011 05:15:00 GMThttp://www.aygfsteel.com/Green-nut/articles/349031.htmlhttp://www.aygfsteel.com/Green-nut/comments/349031.htmlhttp://www.aygfsteel.com/Green-nut/articles/349031.html#Feedback0http://www.aygfsteel.com/Green-nut/comments/commentRss/349031.htmlhttp://www.aygfsteel.com/Green-nut/services/trackbacks/349031.html方法是在實(shí)現(xiàn)BaseAdapter的類(lèi)中重載兩個(gè)方法。

public boolean areAllItemsEnabled() 
       
{
               
return false;
       
}
       
public boolean isEnabled(int position)
       
{
               
return false;
       
}


fanxu 2011-04-26 13:15 發(fā)表評(píng)論
]]>
android sqlite 數(shù)據(jù)庫(kù)問(wèn)題http://www.aygfsteel.com/Green-nut/articles/349018.htmlfanxufanxuTue, 26 Apr 2011 02:20:00 GMThttp://www.aygfsteel.com/Green-nut/articles/349018.htmlhttp://www.aygfsteel.com/Green-nut/comments/349018.htmlhttp://www.aygfsteel.com/Green-nut/articles/349018.html#Feedback0http://www.aygfsteel.com/Green-nut/comments/commentRss/349018.htmlhttp://www.aygfsteel.com/Green-nut/services/trackbacks/349018.html開(kāi)發(fā)中需要連接sqlite數(shù)據(jù)庫(kù),使用如下方法打開(kāi)數(shù)據(jù)庫(kù):

    SQLiteDatabase database = SQLiteDatabase.openDatabase(PATH, null,SQLiteDatabase.OPEN_READONLY);

程序拋出異常:

    No such table android_metadata

解決辦法,將openDatabase方法中最后一個(gè)參數(shù)修改為

    SQLiteDatabase.NO_LOCALIZED_COLLATORS

再次運(yùn)行程序,順利通過(guò)。


fanxu 2011-04-26 10:20 發(fā)表評(píng)論
]]>
android:windowSoftInputMode屬性使用http://www.aygfsteel.com/Green-nut/articles/349015.htmlfanxufanxuTue, 26 Apr 2011 02:16:00 GMThttp://www.aygfsteel.com/Green-nut/articles/349015.htmlhttp://www.aygfsteel.com/Green-nut/comments/349015.htmlhttp://www.aygfsteel.com/Green-nut/articles/349015.html#Feedback1http://www.aygfsteel.com/Green-nut/comments/commentRss/349015.htmlhttp://www.aygfsteel.com/Green-nut/services/trackbacks/349015.htmlhttp://www.aygfsteel.com/zhip/archive/2011/02/14/344258.html

在AndroidManifest.xml文件中的android:windowSoftInputMode屬性使用

The AndroidManifest.xml File

 <activity android:windowSoftInputMode=["stateUnspecified",

                                    "stateUnchanged", "stateHidden",

                                    "stateAlwaysHidden", "stateVisible",

                                    "stateAlwaysVisible", "adjustUnspecified",

                                    "adjustResize", "adjustPan"] …… >

</activity>

attributes:

android:windowSoftInputMode

活動(dòng)的主窗口如何與包含屏幕上的軟鍵盤(pán)窗口交互。這個(gè)屬性的設(shè)置將會(huì)影響兩件事情:

1>     軟鍵盤(pán)的狀態(tài)——是否它是隱藏或顯示——當(dāng)活動(dòng)(Activity)成為用戶關(guān)注的焦點(diǎn)。

2>     活動(dòng)的主窗口調(diào)整——是否減少活動(dòng)主窗口大小以便騰出空間放軟鍵盤(pán)或是否當(dāng)活動(dòng)窗口的部分被軟鍵盤(pán)覆蓋時(shí)它的內(nèi)容的當(dāng)前焦點(diǎn)是可見(jiàn)的。

它的設(shè)置必須是下面列表中的一個(gè)值,或一個(gè)”state…”值加一個(gè)”adjust…”值的組合。在任一組設(shè)置多個(gè)值——多個(gè)”state…”values,例如&mdash有未定義的結(jié)果。各個(gè)值之間用|分開(kāi)。例如: <activity android:windowSoftInputMode="stateVisible|adjustResize" . . . >

在這設(shè)置的值(除"stateUnspecified"和"adjustUnspecified"以外)將覆蓋在主題中設(shè)置的值

值 描述
 
"stateUnspecified" 軟鍵盤(pán)的狀態(tài)(是否它是隱藏或可見(jiàn))沒(méi)有被指定。系統(tǒng)將選擇一個(gè)合適的狀態(tài)或依賴于主題的設(shè)置。這個(gè)是為了軟件盤(pán)行為默認(rèn)的設(shè)置。
 
"stateUnchanged" 軟鍵盤(pán)被保持無(wú)論它上次是什么狀態(tài),是否可見(jiàn)或隱藏,當(dāng)主窗口出現(xiàn)在前面時(shí)。
 
"stateHidden" 當(dāng)用戶選擇該Activity時(shí),軟鍵盤(pán)被隱藏——也就是,當(dāng)用戶確定導(dǎo)航到該Activity時(shí),而不是返回到它由于離開(kāi)另一個(gè)Activity。
 
"stateAlwaysHidden" 軟鍵盤(pán)總是被隱藏的,當(dāng)該Activity主窗口獲取焦點(diǎn)時(shí)。
 
"stateVisible" 軟鍵盤(pán)是可見(jiàn)的,當(dāng)那個(gè)是正常合適的時(shí)(當(dāng)用戶導(dǎo)航到Activity主窗口時(shí))。
 
"stateAlwaysVisible" 當(dāng)用戶選擇這個(gè)Activity時(shí),軟鍵盤(pán)是可見(jiàn)的——也就是,也就是,當(dāng)用戶確定導(dǎo)航到該Activity時(shí),而不是返回到它由于離開(kāi)另一個(gè)Activity。
 
"adjustUnspecified" 它不被指定是否該Activity主窗口調(diào)整大小以便留出軟鍵盤(pán)的空間,或是否窗口上的內(nèi)容得到屏幕上當(dāng)前的焦點(diǎn)是可見(jiàn)的。系統(tǒng)將自動(dòng)選擇這些模式中一種主要依賴于是否窗口的內(nèi)容有任何布局視圖能夠滾動(dòng)他們的內(nèi)容。如果有這樣的一個(gè)視圖,這個(gè)窗口將調(diào)整大小,這樣的假設(shè)可以使?jié)L動(dòng)窗口的內(nèi)容在一個(gè)較小的區(qū)域中可見(jiàn)的。這個(gè)是主窗口默認(rèn)的行為設(shè)置。
 
"adjustResize" 該Activity主窗口總是被調(diào)整屏幕的大小以便留出軟鍵盤(pán)的空間。
 
"adjustPan" 該Activity主窗口并不調(diào)整屏幕的大小以便留出軟鍵盤(pán)的空間。相反,當(dāng)前窗口的內(nèi)容將自動(dòng)移動(dòng)以便當(dāng)前焦點(diǎn)從不被鍵盤(pán)覆蓋和用戶能總是看到輸入內(nèi)容的部分。這個(gè)通常是不期望比調(diào)整大小,因?yàn)橛脩艨赡荜P(guān)閉軟鍵盤(pán)以便獲得與被覆蓋內(nèi)容的交互操作。
 



fanxu 2011-04-26 10:16 發(fā)表評(píng)論
]]>
java 文件 排序http://www.aygfsteel.com/Green-nut/articles/348307.htmlfanxufanxuThu, 14 Apr 2011 10:05:00 GMThttp://www.aygfsteel.com/Green-nut/articles/348307.htmlhttp://www.aygfsteel.com/Green-nut/comments/348307.htmlhttp://www.aygfsteel.com/Green-nut/articles/348307.html#Feedback1http://www.aygfsteel.com/Green-nut/comments/commentRss/348307.htmlhttp://www.aygfsteel.com/Green-nut/services/trackbacks/348307.html
知識(shí)點(diǎn)
1.數(shù)組可以直接排序,不用轉(zhuǎn)換為ArrayList。
java.util.Arrays.sort(T[] a, Comparator<? super T> c)
2.利用Comparator接口,我們可以方便的設(shè)計(jì)自己的排序規(guī)則。
Comparator接口里就一個(gè)函數(shù),int compare(T o1, T o2)
返回值有三個(gè), 0, -1, 1 
分別表示,相等,小于和大于
3.中文字符串如何排序
中文字符串排序肯定要用到中文排序的Comparator,幸運(yùn)的是,java有提供這樣的Comparator。
獲取方法
Collator.getInstance(java.util.Locale.CHINA);

下面是,自己封裝的一個(gè)文件排序的類(lèi),有四種排序方法。

package com.test;

import java.io.File;
import java.sql.Date;
import java.text.Collator;
import java.util.Arrays;
import java.util.Comparator;

public class FileSorter implements Comparator<File>{
    
/**默認(rèn)排序的方式, 按目錄,文件排序TYPE_DIR*/
    
public static final int TYPE_DEFAULT             = -1;
    
/**按修改時(shí)間,降序*/
    
public static final int TYPE_MODIFIED_DATE_DOWN = 1;
    
/**按修改時(shí)間,升序*/
    
public static final int TYPE_MODIFIED_DATE_UP    = 2;
    
/**按文件大小,降序*/
    
public static final int TYPE_SIZE_DOWN            = 3;
    
/**按文件大小,升序*/
    
public static final int TYPE_SIZE_UP            = 4;
/*  public static final int TYPE_NAME_DOWN            = 5;
    public static final int TYPE_NAME_UP            = 6;
*/
    
/**按文件名*/
    
public static final int TYPE_NAME                 = 5;
    
/**按目錄,文件排序*/
    
public static final int TYPE_DIR                = 7;
    
    
private int mType = -1;
    
    
public FileSorter(int type) {
        
if (type < 0 || type > 7) {
            type 
= TYPE_DIR;
        }
        mType 
= type;
    }
    @Override
    
public int compare(File object1, File object2) {
        
        
int result = 0;
        
        
switch (mType) {
        
        
case TYPE_MODIFIED_DATE_DOWN://last modified date down
            result = compareByModifiedDateDown(object1, object2);
            
break;
            
        
case TYPE_MODIFIED_DATE_UP://last modified date up
            result = compareByModifiedDateUp(object1, object2);
            
break;
            
        
case TYPE_SIZE_DOWN:    // file size down
            result = compareBySizeDown(object1, object2);
            
break;
            
        
case TYPE_SIZE_UP:        //file size up
            result = compareBySizeUp(object1, object2);
            
break;
            
        
case TYPE_NAME:            //name 
            result = compareByName(object1, object2);
            
break;
            
        
case TYPE_DIR:            //dir or file
            result = compareByDir(object1, object2);
            
break;
        
default:
            result 
= compareByDir(object1, object2);
            
break;
        }
        
return result;
    }
    
private int compareByModifiedDateDown(File object1, File object2) {
        
        
long d1 = object1.lastModified();
        
long d2 = object2.lastModified();
        
        
if (d1 == d2){
            
return 0;
        } 
else {
            
return d1 < d2 ? 1 : -1;
        }
    }
    
private int compareByModifiedDateUp(File object1, File object2) {
        
        
long d1 = object1.lastModified();
        
long d2 = object2.lastModified();
        
        
if (d1 == d2){
            
return 0;
        } 
else {
            
return d1 > d2 ? 1 : -1;
        }
    }
    
private int compareBySizeDown(File object1, File object2) {
        
        
if (object1.isDirectory() && object2.isDirectory()) {
            
return 0;
        }
        
if (object1.isDirectory() && object2.isFile()) {
            
return -1;
        }
        
if (object1.isFile() && object2.isDirectory()) {
            
return 1;
        }
        
long s1 = object1.length();
        
long s2 = object2.length();
        
        
if (s1 == s2){
            
return 0;
        } 
else {
            
return s1 < s2 ? 1 : -1;
        }
    }
    
private int compareBySizeUp(File object1, File object2) {
        
        
if (object1.isDirectory() && object2.isDirectory()) {
            
return 0;
        }
        
if (object1.isDirectory() && object2.isFile()) {
            
return -1;
        }
        
if (object1.isFile() && object2.isDirectory()) {
            
return 1;
        }
        
        
long s1 = object1.length();
        
long s2 = object2.length();
        
        
if (s1 == s2){
            
return 0;
        } 
else {
            
return s1 > s2 ? 1 : -1;
        }
    }
    
private int compareByName(File object1, File object2) {
        
        Comparator
<Object> cmp = Collator.getInstance(java.util.Locale.CHINA);
        
        
return cmp.compare(object1.getName(), object2.getName());
    }
    
private int compareByDir(File object1, File object2) {
        
        
if (object1.isDirectory() && object2.isFile()) {
            
return -1;
        } 
else if (object1.isDirectory() && object2.isDirectory()) {
            
return compareByName(object1, object2);
        } 
else if (object1.isFile() && object2.isDirectory()) {
            
return 1;
        } 
else {  //object1.isFile() && object2.isFile()) 
            return compareByName(object1, object2);
        }
    }
    
//for test
    public static void main(String[] args){
         
        File[] list 
= new File("/usr").listFiles();
        Arrays.sort(list, 
new FileSorter(FileSorter.TYPE_SIZE_UP));
        printFileArray(list);
    }
    
//for test
    private static void printFileArray(File[] list) {
        
        System.out.println(
"文件大小\t\t文件修改日期\t\t文件類(lèi)型\t\t文件名稱(chēng)");
        
        
for (File f : list) {
            System.out.println(f.length() 
+ "\t\t" + new Date(f.lastModified()).toString() + "\t\t" + (f.isDirectory() ? "目錄" : "文件"+ "\t\t" +  f.getName() );
        }
    }
    
}



fanxu 2011-04-14 18:05 發(fā)表評(píng)論
]]>
郵件客戶端Evolution-Gmail賬戶設(shè)置http://www.aygfsteel.com/Green-nut/articles/348179.htmlfanxufanxuWed, 13 Apr 2011 02:17:00 GMThttp://www.aygfsteel.com/Green-nut/articles/348179.htmlhttp://www.aygfsteel.com/Green-nut/comments/348179.htmlhttp://www.aygfsteel.com/Green-nut/articles/348179.html#Feedback0http://www.aygfsteel.com/Green-nut/comments/commentRss/348179.htmlhttp://www.aygfsteel.com/Green-nut/services/trackbacks/348179.html

主要內(nèi)容:

接收電子郵件:

    服務(wù)器類(lèi)型:pop;

    服務(wù)器:pop.gmail.com:995 (POP服務(wù)器地址:pop.gmail.com 端口:995支持SSL)
    用戶名:你的gmail地址,如username@gmail.com 

    使用安全鏈接:SSL加密。

    認(rèn)證類(lèi)型:密碼

    記住密碼:(按照個(gè)人習(xí)慣)記住或者不記并不影響收發(fā)郵件

發(fā)送電子郵件:

    服務(wù)器類(lèi)型:smtp;

    服務(wù)器:smtp.gmail.com:465 SMTP服務(wù)器地址: smtp.gmail.com 端口:465 或者 587 支持SSL )

    服務(wù)器需要認(rèn)證:選中;

    使用安全鏈接,SSL加密; 

    身份驗(yàn)證:用默認(rèn)的"Plain"; 

    用戶名:同你的郵件地址,如username@gmail.com,

    記住密碼:按照個(gè)人習(xí)慣設(shè)置。

其他內(nèi)容按照提示完成,保存后就可以接受到Gmail賬戶中的郵件了。



fanxu 2011-04-13 10:17 發(fā)表評(píng)論
]]>
android TextView 實(shí)現(xiàn)關(guān)鍵字高亮http://www.aygfsteel.com/Green-nut/articles/348167.htmlfanxufanxuTue, 12 Apr 2011 10:27:00 GMThttp://www.aygfsteel.com/Green-nut/articles/348167.htmlhttp://www.aygfsteel.com/Green-nut/comments/348167.htmlhttp://www.aygfsteel.com/Green-nut/articles/348167.html#Feedback1http://www.aygfsteel.com/Green-nut/comments/commentRss/348167.htmlhttp://www.aygfsteel.com/Green-nut/services/trackbacks/348167.html需求:搜索TextView里面的關(guān)鍵字,并高亮顯示。
實(shí)現(xiàn)方法:
利用SpannableString 的特性,搜索TextView的要顯示的字符串,將相應(yīng)的關(guān)鍵字標(biāo)記為高亮
設(shè)計(jì)到的api
1. SpannableString 
  這是一個(gè)很奇妙的東西,利用他你可以實(shí)現(xiàn)qq聊天記錄自動(dòng)替換表情文字的效果。當(dāng)然,這里我們只要將文字設(shè)計(jì)成高亮就可以了
2. 這里有個(gè)api函數(shù),

         public abstract void setSpan (Object what, int start, int end, int flags)

Since: API Level 1

Attach the specified markup object to the range start…end of the text, or move the object to that range if it was already attached elsewhere. See Spanned for an explanation of what the flags mean. The object can be one that has meaning only within your application, or it can be one that the text system will use to affect text display or behavior. Some noteworthy ones are the subclasses of CharacterStyle and ParagraphStyle, and TextWatcher and SpanWatcher

這個(gè)函數(shù)的object是給定的樣式,或者替換什么的,start和end指定了采用樣式的位置,flags我不知道是什么,這里用源碼里面的Spanned.SPAN_EXCLUSIVE_EXCLUSIVE
3. 搜索方法,這里只是一個(gè)簡(jiǎn)單的測(cè)試,用正則實(shí)現(xiàn)的搜索。
上代碼
TextView tv = (TextView) findViewById(R.id.hello);
        SpannableString s 
= new SpannableString(getResources().getString(R.string.linkify));
    
        Pattern p 
= Pattern.compile("abc");
        
        
         Matcher m 
= p.matcher(s);

        
while (m.find()) {
            
int start = m.start();
            
int end = m.end();
            s.setSpan(
new ForegroundColorSpan(Color.RED), start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
        }
        tv.setText(s);
要是大數(shù)據(jù)量的時(shí)候,每次搜索都重新setText可能效率上非常不好,這里提供一個(gè)看過(guò)源碼的建議,在一次setText(spannable s) 之后,每次getText獲取的就是spannable了,所以不用每次更改和重新載入數(shù)據(jù),直接更改就可以了。
參考
http://yuanzhifei89.iteye.com/blog/983944   這個(gè)頁(yè)面有些各種各樣的樣式和實(shí)現(xiàn)點(diǎn)擊跳轉(zhuǎn)的方法即Linkify
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.0_r1/android/text/util/Linkify.java#Linkify.gatherLinks%28java.util.ArrayList%2Candroid.text.Spannable%2Cjava.util.regex.Pattern%2Cjava.lang.String%5B%5D%2Candroid.text.util.Linkify.MatchFilter%2Candroid.text.util.Linkify.TransformFilter%29  LINKify源碼


fanxu 2011-04-12 18:27 發(fā)表評(píng)論
]]>
android 短信數(shù)據(jù)庫(kù)http://www.aygfsteel.com/Green-nut/articles/347903.htmlfanxufanxuFri, 08 Apr 2011 09:23:00 GMThttp://www.aygfsteel.com/Green-nut/articles/347903.htmlhttp://www.aygfsteel.com/Green-nut/comments/347903.htmlhttp://www.aygfsteel.com/Green-nut/articles/347903.html#Feedback0http://www.aygfsteel.com/Green-nut/comments/commentRss/347903.htmlhttp://www.aygfsteel.com/Green-nut/services/trackbacks/347903.html
這里主要是對(duì)android短信數(shù)據(jù)庫(kù),對(duì)話模式的解析。

1. 獲取 conversations 列表
Uri content://mms-sms/conversations?simple=true
這個(gè)表就是短信數(shù)據(jù)庫(kù)中thread_list表,字段完全一模一樣。

2. 根據(jù)第一步里面的thread_id

查詢表sms

Uri content://sms

即可獲取一條條的短信信息

參考文檔
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/provider/Telephony.java#Telephony.Threads.0CONTENT_URI
以及android sms短信客戶端源碼 和 android 短信provider源碼



fanxu 2011-04-08 17:23 發(fā)表評(píng)論
]]>
htc desire hd 1.84 roothttp://www.aygfsteel.com/Green-nut/articles/347583.htmlfanxufanxuSun, 03 Apr 2011 05:05:00 GMThttp://www.aygfsteel.com/Green-nut/articles/347583.htmlhttp://www.aygfsteel.com/Green-nut/comments/347583.htmlhttp://www.aygfsteel.com/Green-nut/articles/347583.html#Feedback0http://www.aygfsteel.com/Green-nut/comments/commentRss/347583.htmlhttp://www.aygfsteel.com/Green-nut/services/trackbacks/347583.htmlhttp://bbs.gfan.com/android-920891-1-1.html
本帖最后由 heleneq 于 2011-3-17 15:48 編輯

對(duì)于之前大家說(shuō)的文件下載不了的問(wèn)題,我現(xiàn)在上傳一個(gè)我自己用過(guò)的所有的文件的打包,直接cmd到這個(gè)目錄,執(zhí)行命令即可
root工具下載地址http://u.115.com/file/t2a7876181#
可能說(shuō)的比較籠統(tǒng),詳細(xì)的說(shuō)一下步驟吧
1、先安裝深度卸載工具,自己去下載吧,網(wǎng)上很多
2、下載root工具,地址在上邊
3、usb連接電腦,選擇僅充電
4、打開(kāi)命令提示符,cd到root工具目錄(解壓后的)
5、
  1. adb push su /sdcard/su
  2. adb push Superuser.apk /sdcard/Superuser.apk
  3. adb push rage /data/local/tmp/rage
  4. adb push busybox /data/local/tmp/busybox
  5. adb push root /data/local/tmp/root
  6. adb shell chmod 0755 /data/local/tmp/*
  7. adb push psneuter /data/local/tmp
  8. adb shell chmod 777 /data/local/tmp/psneuter
  9. adb shell /data/local/tmp/psneuter
  10. adb shell
復(fù)制代碼

如果顯示變成了#,說(shuō)明成功臨時(shí)root
  1. cd\
  2. adb push gfree /data/local
  3. adb shell
  4. cd /data/local
  5. chmod 777 gfree
  6. ./gfree -f
  7. sync
  8. /data/local/tmp/root
  9. sync
復(fù)制代碼

7、最后會(huì)有個(gè)錯(cuò)誤提示“mkdir: /system/xbin already exists”,不用管它,重啟手機(jī)
這個(gè)時(shí)候你會(huì)在程序列表中看到一個(gè)大兵模樣的圖標(biāo),我打開(kāi)的時(shí)候什么都沒(méi)有,不用管它
8、打開(kāi)深度卸載,提示你root權(quán)限,點(diǎn)擊允許,你就可以刪除你不想要的程序了

至此完成!如有不能這么做的,我也沒(méi)有辦法,呵呵!


fanxu 2011-04-03 13:05 發(fā)表評(píng)論
]]>
android 混淆http://www.aygfsteel.com/Green-nut/articles/347512.htmlfanxufanxuSat, 02 Apr 2011 02:47:00 GMThttp://www.aygfsteel.com/Green-nut/articles/347512.htmlhttp://www.aygfsteel.com/Green-nut/comments/347512.htmlhttp://www.aygfsteel.com/Green-nut/articles/347512.html#Feedback0http://www.aygfsteel.com/Green-nut/comments/commentRss/347512.htmlhttp://www.aygfsteel.com/Green-nut/services/trackbacks/347512.htmlhttp://blog.k-res.net/?p=819
ant 混淆的規(guī)則,我不大了解,也沒(méi)看。
android里面混淆其實(shí)就加一句話就可以了
文件build.properties里面添加proguard.config=proguard.cfg
可以右鍵項(xiàng)目->Android Tools->Export Signed (或Unsigned)  Application Package…,生成的apk包
我測(cè)試過(guò),混淆代碼沒(méi)有問(wèn)題,但是界面xml是沒(méi)有混淆的


fanxu 2011-04-02 10:47 發(fā)表評(píng)論
]]>
ubuntu用戶環(huán)境變量設(shè)置http://www.aygfsteel.com/Green-nut/articles/347511.htmlfanxufanxuSat, 02 Apr 2011 02:44:00 GMThttp://www.aygfsteel.com/Green-nut/articles/347511.htmlhttp://www.aygfsteel.com/Green-nut/comments/347511.htmlhttp://www.aygfsteel.com/Green-nut/articles/347511.html#Feedback0http://www.aygfsteel.com/Green-nut/comments/commentRss/347511.htmlhttp://www.aygfsteel.com/Green-nut/services/trackbacks/347511.html
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi
PATH="$HOME/android/android-sdk-linux_x86-1.6_r1/platform-tools:$PATH";
PATH="/home/fanxu/android/decompiling/apktool:$PATH";
PATH="/home/fanxu/android/decompiling/dex2jar:$PATH";
export PATH
類(lèi)似這種,添加一條進(jìn)去就可以了

注意,要想立即生效,要執(zhí)行命令
source .profile


fanxu 2011-04-02 10:44 發(fā)表評(píng)論
]]>
主站蜘蛛池模板: 吉木萨尔县| 桦川县| 繁昌县| 绵阳市| 禄丰县| 资源县| 靖边县| 肇源县| 阳西县| 房山区| 阿巴嘎旗| 鄱阳县| 清流县| 烟台市| 方城县| 潮州市| 和龙市| 昌宁县| 五峰| 保靖县| 北票市| 黄龙县| 南安市| 金秀| 治多县| 上杭县| 阿勒泰市| 东明县| 丽江市| 铁岭县| 聊城市| 陵水| 临江市| 大理市| 邯郸市| 永安市| 龙井市| 芦溪县| 全椒县| 延寿县| 泽州县|