protected void startJob(PutlockerDownloadJob job) {
   File f = new File(job.getFileLocation());
   Intent openIntent = new Intent();
   openIntent.setAction(android.content.Intent.ACTION_VIEW);
   openIntent.setDataAndType(Uri.fromFile(f), getMimeTypeForFilename(job._fileName));
   startActivity(Intent.createChooser(openIntent, "Open with:"));
 }
  protected void doAddItems() {

    List<PutlockerDownloadJob> jobs = null;
    List<PutlockerUploadJob> uploadJobs = null;
    PutlockerApplication app = (PutlockerApplication) getApplication();
    TypedStorageInterface<Persistable> persistableStorage = app.getStorage();
    try {
      jobs = persistableStorage.getTyped(PutlockerDownloadJob.class);
      uploadJobs = persistableStorage.getTyped(PutlockerUploadJob.class);
      PutlockerUpDownloadJob[] jobList = new PutlockerUpDownloadJob[jobs.size()];
      PutlockerUpDownloadJob[] uploadJobArray = new PutlockerUpDownloadJob[uploadJobs.size()];
      int i = 0;
      for (PutlockerDownloadJob job : jobs) {
        // ANR could possibly occur here maby a guard?
        File f = new File(job.getFileLocation());
        // does the file exist?
        if (f.exists()) {
          job.downloadedFileSize = f.length();
        }

        jobList[i] = job;
        i++;
      }

      i = 0;
      for (PutlockerUploadJob job : uploadJobs) {
        uploadJobArray[i] = job;
        i++;
      }

      _adapter = new DownloadArrayAdapter(this, R.layout.list_entry_file, jobList, uploadJobArray);
      _list.setAdapter(_adapter);
    } catch (InstantiationException e) {
      e.printStackTrace();
    } catch (IllegalAccessException e) {
      e.printStackTrace();
    }
  }