오픈소스를 이용해서 테스트해보고 있는데요 

이미지가 뜨질 않네요 ㅠㅠ

다운을 못받는건지 bitmap에 저장을 못하는건지 모르겠어요 ㅠㅠ

풀소스입니다 ㅠㅠ

혹시 manifest 추가해야하나요? 이부분은 추가할 필요없다고 들어서 ㅠㅠ

한번 확인부탁드립니다 !!

package com.example.image;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.widget.ImageView;

public class MainActivity extends Activity {
String url = "http://www.winapi.co.kr/data/child3.jpg";
int idx = url.lastIndexOf('/');
String local = url.substring(idx+1);
ImageView img;
Bitmap bitmap =null;
String path;
@Override
protected void onCreate(Bundle savedInstanceState) {
path = Environment.getDataDirectory().getAbsolutePath();
path += "/data/com.example.image/cache/" + local;
Log.i("check","local="+local);
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
if(new File(path).exists() == false){
//DownloadImage(url, local);
new ExampleAsyncTask().execute();
}
img = (ImageView)findViewById(R.id.image1);
}
class ExampleAsyncTask extends AsyncTask<Void, Integer, Long> {
 
        @Override
        protected void onCancelled() {
            super.onCancelled();
        }

        @Override
        protected void onPostExecute(Long result) {
            super.onPostExecute(result);
            if(bitmap != null)
            {
            Log.i("check","null");
            img.setImageBitmap(bitmap);
            }
            
        }

        @Override
        protected void onPreExecute() {
            super.onPreExecute();
        }

        @Override
        protected void onProgressUpdate(Integer... values) {
            //pb.setProgress(values[0]);
           super.onProgressUpdate(values);
        }

        @Override
        protected Long doInBackground(Void... params) {
            long result = 0;
            DownloadImage(url, local);
            bitmap = BitmapFactory.decodeFile(path);
            Log.i("check","image"+path);
            return result;
        }
    }
boolean DownloadImage(String Url, String FileName){
URL url;
int Read;
try {
url = new URL("Url);
HttpURLConnection conn = (HttpURLConnection)url.openConnection();
int len = conn.getContentLength();
byte[] raster = new byte[len];
InputStream is = conn.getInputStream();
FileOutputStream fos = openFileOutput(FileName, 0);
for(;;){
Read = is.read(raster);
if(Read<=0){
break;
}
fos.write(raster,0,Read);
}
is.close();
fos.close();
conn.disconnect();
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return true;
}
}