Removed references to Downloadmanager

This commit is contained in:
daniel oeh 2012-08-17 19:10:55 +02:00
parent 00c9422191
commit f2d72739f9
3 changed files with 5 additions and 18 deletions

View File

@ -11,8 +11,6 @@
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="14" />
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<supports-screens

View File

@ -1,20 +1,11 @@
package de.danoeh.antennapod.storage;
import java.io.File;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
import android.annotation.SuppressLint;
import android.app.DownloadManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.net.Uri;
import android.os.IBinder;
import android.util.Log;
import android.webkit.URLUtil;
import de.danoeh.antennapod.AppConfig;

View File

@ -1,8 +1,7 @@
package de.danoeh.antennapod.util;
import de.danoeh.antennapod.R;
import android.app.DownloadManager;
import android.content.Context;
import de.danoeh.antennapod.R;
/** Utility class for Download Errors. */
public class DownloadError {
@ -13,18 +12,17 @@ public class DownloadError {
public static final int ERROR_IO_ERROR = 5;
public static final int ERROR_FILE_EXISTS = 6;
public static final int ERROR_DOWNLOAD_CANCELLED = 7;
public static final int ERROR_DEVICE_NOT_FOUND = 8;
public static final int ERROR_HTTP_DATA_ERROR = 9;
/** Get a human-readable string for a specific error code. */
public static String getErrorString(Context context, int code) {
int resId;
switch(code) {
case DownloadManager.ERROR_DEVICE_NOT_FOUND:
case ERROR_DEVICE_NOT_FOUND:
resId = R.string.download_error_insufficient_space;
break;
case DownloadManager.ERROR_FILE_ERROR:
resId = R.string.download_error_file_error;
break;
case DownloadManager.ERROR_HTTP_DATA_ERROR:
case ERROR_HTTP_DATA_ERROR:
resId = R.string.download_error_http_data_error;
break;
case ERROR_PARSER_EXCEPTION: