RootTools 3.0 (which fixes an important bug) :왜 최종 변수를 검사 할 수 없습니까?
한 부분을 더 잘 읽을 수 있도록 콜백 클래스로 다시 작성했습니다. 나는 삭제 될 수 있습니다 브라우저 캐시의 총을 알려 두 디렉토리의 크기를 추가 해요 :
@Override
protected void onResume() {
super.onResume();
//Refresh views:
try {
//Show browser's cache size:
ShellCommands.getListing("/data/data/com.android.browser/app_databases/", null, new Callback<SumSize>() {
@Override
public void call(SumSize localstore) throws InterruptedException, IOException, TimeoutException, RootDeniedException {
final SumSize total = localstore;
getFirefoxProfiles(new Callback<String>() {
@Override
public void call(String input) throws InterruptedException, IOException, TimeoutException, RootDeniedException {
ShellCommands.getListing(input+"/Cache/", null, new Callback<SumSize>() {
@Override
public void call(SumSize input) {
total.add(input);
((TextView)findViewById(R.id.lblClearBrowser)).setText(total.getReadable());
}
});
}
});
}
});
는 .waitforfinish
와 이었지만, 디버깅에 심각한 문제가있어보다 더 복잡 비트 : 내부 호출 (SumSize 입력)이 제대로 작동하는 것처럼 보이지만 디버깅 할 때 전체 내용을 볼 방법이 없습니다. 외부 변수가 final
인 Java의 버그입니까? Android의 버그? Eclipse의 버그?
'this'에서 볼 수있는 것은? 어쩌면'this.val $ total' – johnchen902
디버깅을위한 중단 점은 어디에서 찾을 수 있습니까? – luk2302
@ johnchen902 네 말이 맞아. 이건'this.val $ total'이야. 마우스 오버시 팝업되지 않는 이유를 알고 계시거나 마우스 오른쪽 버튼으로 클릭하여 검사하십시오. – NoBugs