외부 활동의 결과로 오디오 파일을 가져 오려면 어떤 인 텐트 필터를 사용해야합니까? 어떻게 결과가 반환 될까요? URI, 명시 적 경로 문자열, 파일 설명자 또는 파일 객체로?android : 오디오 파일을 가져 오는 암시 적 의도는 무엇입니까?
0
A
답변
0
i = new Intent();
i.setAction(Intent.ACTION_GET_CONTENT);
i.setType("audio/*");
이 항목을 사용하면 디렉토리에서 오디오 파일 목록을 가져올 수 있습니다.
0
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_PICK);
intent.setData(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(intent, CODE);
결과 내용은 항상 URI가됩니까? – Allahjane
예 항상 URI입니다. – Riser
호출 응용 프로그램이 구현해야하는 해당 인 텐트 필터를 알기 위해 어떤 의도를 보내야하는지 찾는 방법이 있습니까? – Allahjane