title: Android: save downloaded data using DownloadManager in the internal memory
body: <p>I am downloading data from a server using the <code>DownloadManager</code> class in Android. I want to save data in the internal memroy (data/data/mypackage/files/...) instead of the external memory. How to do this?</p>
  
  <pre><code>DownloadManager dm = (DownloadManager) DownloadApplicationActivity.this.getSystemService(Context.DOWNLOAD_SERVICE);
      DownloadManager.Request req = new DownloadManager.Request(Uri.parse(MY_LINK));
      req.setTitle(MY_TITLE)
                      .setDescription("Downloading ....")
                      // download the package to the /sdcard/downlaod path.
                      .setDestinationInExternalPublicDir(
                              Environment.DIRECTORY_DOWNLOADS,
                              MY_PATH);
              long enqueue = dm.enqueue(req);
  </code></pre>