이 코드를 작성하여 sd 카드에 pdf 파일을 저장했지만 저장 파일이있는 디렉토리를/sdcard /에서/sdcard/MYDIR/chaged 디렉토리가 sd 카드에 저장 됨
으로 변경하려고합니다.try {
URL url = new URL(f_url[0]);
URLConnection conection = url.openConnection();
conection.connect();
// getting file length
int lenghtOfFile = conection.getContentLength();
// input stream to read file - with 8k buffer
InputStream input = new BufferedInputStream(url.openStream(), 8192);
// Output stream to write file
OutputStream output = new FileOutputStream("/sdcard/yes.pdf");
dirctory를 만들려면 어떻게해야합니까? 이미 작성했는지 확인하십시오. – PedroAGSantos
어떻게 만들 수 있습니까? 나는 코드를 모른다. .. – Ali