public DownloadTask(DownloadJob downloadJob, Handler handler) { this.downloadJob = downloadJob; this.handler = handler; this.dropFolder = Constants.getHockeyAppStorageDir(); this.bitmap = null; this.bitmapOrientation = ImageUtils.ORIENTATION_PORTRAIT; // default }
public CheckUpdateTask(WeakReference weakreference, String s, String s1, UpdateManagerListener updatemanagerlistener) { urlString = null; appIdentifier = null; context = null; mandatory = Boolean.valueOf(false); usageTime = 0L; appIdentifier = s1; urlString = s; listener = updatemanagerlistener; s = null; if (weakreference != null) { s = (Context)weakreference.get(); } if (s != null) { context = s.getApplicationContext(); usageTime = Tracking.getUsageTime(s); Constants.loadFromContext(s); } }