android打印

1.在eclipse中點擊菜單欄,window->Show View 把LogCat顯示出來
2.在程序中這樣寫:
import android.util.Log;
private static final String TAG = "MyActivity";
Log.v(TAG, "currentX=" + currentX);
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章