아래는  파일을 다운로드 받는 소스인데 안됩니다

뭐가 잘못됐는지 봐주세요

부탁드리겠습니다

    public void download_WebLink()
    {
      try
      {  
     Log.e("DOWNLOAD", "start");
          URL url = new URL("http://xxx.xxx.xxx.xxx/test.apk");

      
         HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();  
         urlConnection.setDoOutput(true);  
         urlConnection.connect();
         Log.e("DOWNLOAD", "Connect");
      
         File SDCardRoot = Environment.getExternalStorageDirectory();  
         File file = new File(SDCardRoot,"Geocoder_Test.apk"); 
         FileOutputStream fileOutput = new FileOutputStream(file);
         Log.e("DOWNLOAD", "fileoutput");
      
         InputStream inputStream = urlConnection.getInputStream();  
         int totalSize = urlConnection.getContentLength();  
         int downloadedSize = 0;  
      
         byte[] buffer = new byte[1024];  
         int bufferLength = 0;
         while ( (bufferLength = inputStream.read(buffer)) > 0 )
         {  
             fileOutput.write(buffer, 0, bufferLength);  
             downloadedSize += bufferLength;
              //mProgressBar.setProgress(downloadedSize);
             Log.e("DOWNLOAD", "saving...");
         }  
         fileOutput.close();  
      
      } catch (MalformedURLException e)
      {  
         e.printStackTrace();  
      } catch (IOException e)
      {  
         e.printStackTrace();  
      }
      Log.e("DOWNLOAD", "end");
      
      Log.e("DOWNLOAD", "InstallAPK Method Called");

     }