2012-09-13 4 views
2

내 앱에서 통합 파일 브라우저로 OI 파일 관리자를 사용하여 파일을 검색하고 선택하려고합니다.Android 응용 프로그램에서 OI 파일 관리자를 사용하도록 OpenIntents 가져 오기

나는 다음과 같은 명령을 사용하여 브라우저를 구현할 수 : 나는 데모 예제를 살펴했고 내가 얻을

import org.openintents.intents.FileManagerIntents; 

을 가져올 경우 문제가있다 그런

Intent intent = new Intent("org.openintents.action.PICK_FILE"); 
startActivityForResult(intent, 1); 

Eclipse의 다음 오류 :

The import org.openintents cannot be resolved 

무엇이 문제입니까?

감사합니다. 마이크

답변

1

아무 것도 가져올 필요가 없습니다.

Intent intent = new Intent("org.openintents.action.PICK_FILE"); 
startActivityForResult(intent, 1); 

위의 라인은 이미 장치의 설치 OI 파일 관리자를 요구하고 PICK_FILE 작업을 실행합니다.