Renamed package and application

This commit is contained in:
daniel oeh 2012-07-13 12:23:47 +02:00
parent 1ae00a0f25
commit ba2d2afbbc
75 changed files with 383 additions and 383 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Podfetcher</name>
<name>Antennapod</name>
<comment></comment>
<projects>
</projects>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.podfetcher"
package="de.danoeh.antennapod"
android:versionCode="1"
android:versionName="1.0" >
@ -13,13 +13,13 @@
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
<application
android:name="de.podfetcher.PodcastApp"
android:name="de.danoeh.antennapod.PodcastApp"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:logo="@drawable/ic_launcher"
android:theme="@style/Theme.Sherlock.Light.ForceOverflow" >
<activity
android:name="de.podfetcher.activity.PodfetcherActivity"
android:name=".activity.MainActivity"
android:label="@string/app_name"
android:theme="@style/StyledIndicators" >
<intent-filter>
@ -29,26 +29,26 @@
</intent-filter>
</activity>
<activity
android:name="de.podfetcher.activity.AddFeedActivity"
android:name="de.danoeh.antennapod.activity.AddFeedActivity"
android:label="@string/add_new_feed_label" />
<activity
android:name="de.podfetcher.activity.FeedItemlistActivity"
android:name="de.danoeh.antennapod.activity.FeedItemlistActivity"
android:configChanges="orientation|screenSize" />
<activity android:name="de.podfetcher.activity.ItemviewActivity" />
<activity android:name="de.danoeh.antennapod.activity.ItemviewActivity" />
<activity
android:name="de.podfetcher.activity.DownloadActivity"
android:name="de.danoeh.antennapod.activity.DownloadActivity"
android:label="@string/downloads_label" />
<activity
android:name="de.podfetcher.activity.MediaplayerActivity"
android:name="de.danoeh.antennapod.activity.MediaplayerActivity"
android:configChanges="orientation"
android:launchMode="singleTask"
android:theme="@style/Theme.MediaPlayer" />
<service
android:name="de.podfetcher.service.DownloadService"
android:name="de.danoeh.antennapod.service.DownloadService"
android:enabled="true" />
<service
android:name="de.podfetcher.service.PlaybackService"
android:name="de.danoeh.antennapod.service.PlaybackService"
android:enabled="true" >
</service>
@ -66,7 +66,7 @@
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
<intent-filter>
<action android:name="de.podfetcher.NOTIFY_BUTTON_RECEIVER" />
<action android:name="de.danoeh.antennapod.NOTIFY_BUTTON_RECEIVER" />
</intent-filter>
</receiver>
@ -84,7 +84,7 @@
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<intent-filter>
<action android:name="de.podfetcher.FORCE_WIDGET_UPDATE" />
<action android:name="de.danoeh.antennapod.FORCE_WIDGET_UPDATE" />
</intent-filter>
<meta-data
@ -93,7 +93,7 @@
</receiver>
<receiver android:name=".receiver.FeedUpdateReceiver" >
<intent-filter>
<action android:name="de.podfetcher.feedupdatereceiver.refreshFeeds" />
<action android:name="de.danoeh.antennapod.feedupdatereceiver.refreshFeeds" />
</intent-filter>
</receiver>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res/de.podfetcher"
xmlns:app="http://schemas.android.com/apk/res/de.danoeh.antennapod"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

View File

@ -2,7 +2,7 @@
<resources>
<!-- Activitiy titles -->
<string name="app_name">Podfetcher</string>
<string name="app_name">Antennapod</string>
<string name="feeds_label">Feeds</string>
<string name="new_label">New</string>
<string name="settings_label">Settings</string>

View File

@ -1,4 +1,4 @@
package de.podfetcher;
package de.danoeh.antennapod;
import java.util.concurrent.TimeUnit;
@ -10,16 +10,16 @@ import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.util.Log;
import de.podfetcher.asynctask.FeedImageLoader;
import de.podfetcher.feed.FeedManager;
import de.podfetcher.receiver.FeedUpdateReceiver;
import de.podfetcher.util.StorageUtils;
import de.danoeh.antennapod.asynctask.FeedImageLoader;
import de.danoeh.antennapod.feed.FeedManager;
import de.danoeh.antennapod.receiver.FeedUpdateReceiver;
import de.danoeh.antennapod.util.StorageUtils;
public class PodcastApp extends Application implements
SharedPreferences.OnSharedPreferenceChangeListener {
private static final String TAG = "PodcastApp";
public static final String PREF_NAME = "PodfetcherPrefs";
public static final String PREF_NAME = "AntennapodPrefs";
public static final String PREF_PAUSE_ON_HEADSET_DISCONNECT = "prefPauseOnHeadsetDisconnect";
public static final String PREF_FOLLOW_QUEUE = "prefFollowQueue";

View File

@ -1,4 +1,4 @@
package de.podfetcher.activity;
package de.danoeh.antennapod.activity;
import android.os.Bundle;
import android.widget.Button;
@ -12,18 +12,17 @@ import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.util.Log;
import de.podfetcher.R;
import de.podfetcher.asynctask.DownloadObserver;
import de.podfetcher.asynctask.DownloadStatus;
import de.podfetcher.feed.Feed;
import de.podfetcher.feed.FeedManager;
import de.podfetcher.storage.DownloadRequester;
import de.podfetcher.util.ConnectionTester;
import de.podfetcher.util.DownloadError;
import de.podfetcher.util.StorageUtils;
import de.podfetcher.util.URLChecker;
import de.podfetcher.service.DownloadService;
import de.danoeh.antennapod.R;
import de.danoeh.antennapod.asynctask.DownloadObserver;
import de.danoeh.antennapod.asynctask.DownloadStatus;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.feed.FeedManager;
import de.danoeh.antennapod.service.DownloadService;
import de.danoeh.antennapod.storage.DownloadRequester;
import de.danoeh.antennapod.util.ConnectionTester;
import de.danoeh.antennapod.util.DownloadError;
import de.danoeh.antennapod.util.StorageUtils;
import de.danoeh.antennapod.util.URLChecker;
import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.Menu;
import com.actionbarsherlock.view.MenuInflater;

View File

@ -1,13 +1,13 @@
package de.podfetcher.activity;
package de.danoeh.antennapod.activity;
import de.podfetcher.R;
import de.podfetcher.service.DownloadService;
import de.podfetcher.storage.DownloadRequester;
import de.podfetcher.adapter.DownloadlistAdapter;
import de.podfetcher.asynctask.DownloadObserver;
import de.podfetcher.asynctask.DownloadStatus;
import de.podfetcher.feed.FeedMedia;
import de.podfetcher.feed.FeedFile;
import de.danoeh.antennapod.adapter.DownloadlistAdapter;
import de.danoeh.antennapod.asynctask.DownloadObserver;
import de.danoeh.antennapod.asynctask.DownloadStatus;
import de.danoeh.antennapod.feed.FeedFile;
import de.danoeh.antennapod.feed.FeedMedia;
import de.danoeh.antennapod.service.DownloadService;
import de.danoeh.antennapod.storage.DownloadRequester;
import de.danoeh.antennapod.R;
import com.actionbarsherlock.app.SherlockListActivity;
import com.actionbarsherlock.view.ActionMode;
import com.actionbarsherlock.view.Menu;

View File

@ -1,4 +1,4 @@
package de.podfetcher.activity;
package de.danoeh.antennapod.activity;
import android.os.Bundle;
@ -6,8 +6,8 @@ import com.actionbarsherlock.app.SherlockListActivity;
import com.actionbarsherlock.view.Menu;
import com.actionbarsherlock.view.MenuItem;
import de.podfetcher.adapter.DownloadLogAdapter;
import de.podfetcher.feed.FeedManager;
import de.danoeh.antennapod.adapter.DownloadLogAdapter;
import de.danoeh.antennapod.feed.FeedManager;
public class DownloadLogActivity extends SherlockListActivity {
private static final String TAG = "DownloadLogActivity";

View File

@ -1,4 +1,4 @@
package de.podfetcher.activity;
package de.danoeh.antennapod.activity;
import android.os.Bundle;
import android.util.Log;
@ -9,16 +9,16 @@ import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.Menu;
import com.actionbarsherlock.view.MenuItem;
import de.podfetcher.R;
import de.podfetcher.asynctask.FeedImageLoader;
import de.podfetcher.feed.Feed;
import de.podfetcher.feed.FeedManager;
import de.danoeh.antennapod.asynctask.FeedImageLoader;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.feed.FeedManager;
import de.danoeh.antennapod.R;
/** Displays information about a feed. */
public class FeedInfoActivity extends SherlockActivity {
private static final String TAG = "FeedInfoActivity";
public static final String EXTRA_FEED_ID = "de.podfetcher.extra.feedId";
public static final String EXTRA_FEED_ID = "de.danoeh.antennapod.extra.feedId";
private ImageView imgvCover;
private TextView txtvTitle;

View File

@ -1,4 +1,4 @@
package de.podfetcher.activity;
package de.danoeh.antennapod.activity;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
@ -13,14 +13,14 @@ import com.actionbarsherlock.view.MenuInflater;
import com.actionbarsherlock.view.MenuItem;
import com.actionbarsherlock.view.Window;
import de.podfetcher.R;
import de.podfetcher.asynctask.FeedRemover;
import de.podfetcher.feed.Feed;
import de.podfetcher.feed.FeedManager;
import de.podfetcher.fragment.ItemlistFragment;
import de.podfetcher.fragment.FeedlistFragment;
import de.podfetcher.util.FeedMenuHandler;
import de.podfetcher.util.StorageUtils;
import de.danoeh.antennapod.asynctask.FeedRemover;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.feed.FeedManager;
import de.danoeh.antennapod.fragment.FeedlistFragment;
import de.danoeh.antennapod.fragment.ItemlistFragment;
import de.danoeh.antennapod.util.FeedMenuHandler;
import de.danoeh.antennapod.util.StorageUtils;
import de.danoeh.antennapod.R;
/** Displays a List of FeedItems */
public class FeedItemlistActivity extends SherlockFragmentActivity {

View File

@ -1,4 +1,4 @@
package de.podfetcher.activity;
package de.danoeh.antennapod.activity;
import org.shredzone.flattr4j.exception.FlattrException;
@ -15,8 +15,8 @@ import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.Menu;
import com.actionbarsherlock.view.MenuItem;
import de.podfetcher.R;
import de.podfetcher.util.FlattrUtils;
import de.danoeh.antennapod.util.FlattrUtils;
import de.danoeh.antennapod.R;
/** Guides the user through the authentication process */
public class FlattrAuthActivity extends SherlockActivity {
@ -40,7 +40,7 @@ public class FlattrAuthActivity extends SherlockActivity {
@Override
public void onClick(View v) {
startActivity(new Intent(FlattrAuthActivity.this,
PodfetcherActivity.class));
MainActivity.class));
}
});

View File

@ -1,4 +1,4 @@
package de.podfetcher.activity;
package de.danoeh.antennapod.activity;
import java.text.DateFormat;
@ -16,15 +16,15 @@ import com.actionbarsherlock.view.MenuInflater;
import com.actionbarsherlock.view.MenuItem;
import com.actionbarsherlock.view.Window;
import de.podfetcher.R;
import de.podfetcher.feed.Feed;
import de.podfetcher.feed.FeedItem;
import de.podfetcher.feed.FeedManager;
import de.podfetcher.fragment.FeedlistFragment;
import de.podfetcher.fragment.ItemDescriptionFragment;
import de.podfetcher.fragment.ItemlistFragment;
import de.podfetcher.util.FeedItemMenuHandler;
import de.podfetcher.util.StorageUtils;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.feed.FeedItem;
import de.danoeh.antennapod.feed.FeedManager;
import de.danoeh.antennapod.fragment.FeedlistFragment;
import de.danoeh.antennapod.fragment.ItemDescriptionFragment;
import de.danoeh.antennapod.fragment.ItemlistFragment;
import de.danoeh.antennapod.util.FeedItemMenuHandler;
import de.danoeh.antennapod.util.StorageUtils;
import de.danoeh.antennapod.R;
/** Displays a single FeedItem and provides various actions */
public class ItemviewActivity extends SherlockFragmentActivity {

View File

@ -1,4 +1,4 @@
package de.podfetcher.activity;
package de.danoeh.antennapod.activity;
import android.content.BroadcastReceiver;
import android.content.Context;
@ -18,17 +18,17 @@ import com.actionbarsherlock.view.MenuItem;
import com.actionbarsherlock.view.Window;
import com.viewpagerindicator.TabPageIndicator;
import de.podfetcher.R;
import de.podfetcher.feed.FeedManager;
import de.podfetcher.fragment.FeedlistFragment;
import de.podfetcher.fragment.QueueFragment;
import de.podfetcher.fragment.UnreadItemlistFragment;
import de.podfetcher.service.DownloadService;
import de.podfetcher.storage.DownloadRequester;
import de.podfetcher.util.StorageUtils;
import de.danoeh.antennapod.feed.FeedManager;
import de.danoeh.antennapod.fragment.FeedlistFragment;
import de.danoeh.antennapod.fragment.QueueFragment;
import de.danoeh.antennapod.fragment.UnreadItemlistFragment;
import de.danoeh.antennapod.service.DownloadService;
import de.danoeh.antennapod.storage.DownloadRequester;
import de.danoeh.antennapod.util.StorageUtils;
import de.danoeh.antennapod.R;
public class PodfetcherActivity extends SherlockFragmentActivity {
private static final String TAG = "PodfetcherActivity";
public class MainActivity extends SherlockFragmentActivity {
private static final String TAG = "MainActivity";
private FeedManager manager;
private ViewPager viewpager;

View File

@ -1,4 +1,4 @@
package de.podfetcher.activity;
package de.danoeh.antennapod.activity;
import android.app.AlertDialog;
import android.content.BroadcastReceiver;
@ -44,18 +44,18 @@ import com.actionbarsherlock.view.MenuItem;
import com.actionbarsherlock.view.Window;
import com.viewpagerindicator.TabPageIndicator;
import de.podfetcher.PodcastApp;
import de.podfetcher.R;
import de.podfetcher.feed.FeedManager;
import de.podfetcher.feed.FeedMedia;
import de.podfetcher.fragment.CoverFragment;
import de.podfetcher.fragment.ItemDescriptionFragment;
import de.podfetcher.service.PlaybackService;
import de.podfetcher.service.PlayerStatus;
import de.podfetcher.util.Converter;
import de.podfetcher.util.DownloadError;
import de.podfetcher.util.MediaPlayerError;
import de.podfetcher.util.StorageUtils;
import de.danoeh.antennapod.PodcastApp;
import de.danoeh.antennapod.feed.FeedManager;
import de.danoeh.antennapod.feed.FeedMedia;
import de.danoeh.antennapod.fragment.CoverFragment;
import de.danoeh.antennapod.fragment.ItemDescriptionFragment;
import de.danoeh.antennapod.service.PlaybackService;
import de.danoeh.antennapod.service.PlayerStatus;
import de.danoeh.antennapod.util.Converter;
import de.danoeh.antennapod.util.DownloadError;
import de.danoeh.antennapod.util.MediaPlayerError;
import de.danoeh.antennapod.util.StorageUtils;
import de.danoeh.antennapod.R;
public class MediaplayerActivity extends SherlockFragmentActivity implements
SurfaceHolder.Callback {

View File

@ -1,4 +1,4 @@
package de.podfetcher.activity;
package de.danoeh.antennapod.activity;
import android.os.Bundle;
import android.preference.Preference;
@ -9,8 +9,8 @@ import com.actionbarsherlock.app.SherlockPreferenceActivity;
import com.actionbarsherlock.view.Menu;
import com.actionbarsherlock.view.MenuItem;
import de.podfetcher.R;
import de.podfetcher.util.FlattrUtils;
import de.danoeh.antennapod.util.FlattrUtils;
import de.danoeh.antennapod.R;
public class PreferenceActivity extends SherlockPreferenceActivity {
private static final String TAG = "PreferenceActivity";

View File

@ -1,4 +1,4 @@
package de.podfetcher.activity;
package de.danoeh.antennapod.activity;
import android.content.BroadcastReceiver;
import android.content.Context;
@ -9,8 +9,8 @@ import android.util.Log;
import com.actionbarsherlock.app.SherlockActivity;
import de.podfetcher.R;
import de.podfetcher.util.StorageUtils;
import de.danoeh.antennapod.util.StorageUtils;
import de.danoeh.antennapod.R;
public class StorageErrorActivity extends SherlockActivity {
private static final String TAG = "StorageErrorActivity";
@ -44,7 +44,7 @@ public class StorageErrorActivity extends SherlockActivity {
private void leaveErrorState() {
finish();
startActivity(new Intent(this, PodfetcherActivity.class));
startActivity(new Intent(this, MainActivity.class));
}
private BroadcastReceiver mediaUpdate = new BroadcastReceiver() {

View File

@ -1,4 +1,4 @@
package de.podfetcher.adapter;
package de.danoeh.antennapod.adapter;
import java.text.DateFormat;
import java.util.List;
@ -11,13 +11,13 @@ import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import de.podfetcher.R;
import de.podfetcher.asynctask.DownloadStatus;
import de.podfetcher.feed.Feed;
import de.podfetcher.feed.FeedFile;
import de.podfetcher.feed.FeedImage;
import de.podfetcher.feed.FeedMedia;
import de.podfetcher.util.DownloadError;
import de.danoeh.antennapod.asynctask.DownloadStatus;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.feed.FeedFile;
import de.danoeh.antennapod.feed.FeedImage;
import de.danoeh.antennapod.feed.FeedMedia;
import de.danoeh.antennapod.util.DownloadError;
import de.danoeh.antennapod.R;
/** Displays a list of DownloadStatus entries. */
public class DownloadLogAdapter extends ArrayAdapter<DownloadStatus> {

View File

@ -1,4 +1,4 @@
package de.podfetcher.adapter;
package de.danoeh.antennapod.adapter;
import java.util.List;
@ -9,13 +9,13 @@ import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ProgressBar;
import android.widget.TextView;
import de.podfetcher.R;
import de.podfetcher.asynctask.DownloadStatus;
import de.podfetcher.feed.Feed;
import de.podfetcher.feed.FeedFile;
import de.podfetcher.feed.FeedImage;
import de.podfetcher.feed.FeedMedia;
import de.podfetcher.util.Converter;
import de.danoeh.antennapod.asynctask.DownloadStatus;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.feed.FeedFile;
import de.danoeh.antennapod.feed.FeedImage;
import de.danoeh.antennapod.feed.FeedMedia;
import de.danoeh.antennapod.util.Converter;
import de.danoeh.antennapod.R;
public class DownloadlistAdapter extends ArrayAdapter<DownloadStatus> {
private int selectedItemIndex;

View File

@ -1,12 +1,12 @@
package de.podfetcher.adapter;
package de.danoeh.antennapod.adapter;
import java.text.DateFormat;
import java.util.List;
import de.podfetcher.feed.FeedItem;
import de.podfetcher.feed.FeedManager;
import de.podfetcher.util.Converter;
import de.podfetcher.R;
import de.danoeh.antennapod.feed.FeedItem;
import de.danoeh.antennapod.feed.FeedManager;
import de.danoeh.antennapod.util.Converter;
import de.danoeh.antennapod.R;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ImageButton;

View File

@ -1,13 +1,13 @@
package de.podfetcher.adapter;
package de.danoeh.antennapod.adapter;
import java.io.File;
import java.text.DateFormat;
import java.util.List;
import de.podfetcher.R;
import de.podfetcher.asynctask.FeedImageLoader;
import de.podfetcher.feed.Feed;
import de.podfetcher.storage.DownloadRequester;
import de.danoeh.antennapod.asynctask.FeedImageLoader;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.storage.DownloadRequester;
import de.danoeh.antennapod.R;
import android.content.Context;
import android.net.Uri;
import android.text.format.DateUtils;

View File

@ -1,4 +1,4 @@
package de.podfetcher.asynctask;
package de.danoeh.antennapod.asynctask;
import java.util.ArrayList;
import java.util.Collections;
@ -9,9 +9,9 @@ import android.content.Context;
import android.database.Cursor;
import android.os.AsyncTask;
import android.util.Log;
import de.podfetcher.R;
import de.podfetcher.feed.FeedFile;
import de.podfetcher.storage.DownloadRequester;
import de.danoeh.antennapod.feed.FeedFile;
import de.danoeh.antennapod.storage.DownloadRequester;
import de.danoeh.antennapod.R;
/** Observes the status of a specific Download */
public class DownloadObserver extends AsyncTask<Void, Void, Void> {

View File

@ -1,8 +1,8 @@
package de.podfetcher.asynctask;
package de.danoeh.antennapod.asynctask;
import java.util.Date;
import de.podfetcher.feed.FeedFile;
import de.danoeh.antennapod.feed.FeedFile;
/** Contains status attributes for one download */
public class DownloadStatus {

View File

@ -1,12 +1,12 @@
package de.podfetcher.asynctask;
package de.danoeh.antennapod.asynctask;
import java.io.File;
import de.podfetcher.PodcastApp;
import de.podfetcher.R;
import de.podfetcher.feed.FeedImage;
import de.podfetcher.feed.FeedManager;
import de.podfetcher.storage.DownloadRequester;
import de.danoeh.antennapod.PodcastApp;
import de.danoeh.antennapod.feed.FeedImage;
import de.danoeh.antennapod.feed.FeedManager;
import de.danoeh.antennapod.storage.DownloadRequester;
import de.danoeh.antennapod.R;
import android.annotation.SuppressLint;
import android.app.ActivityManager;
import android.content.Context;

View File

@ -1,7 +1,7 @@
package de.podfetcher.asynctask;
package de.danoeh.antennapod.asynctask;
import de.podfetcher.feed.Feed;
import de.podfetcher.feed.FeedManager;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.feed.FeedManager;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;

View File

@ -1,4 +1,4 @@
package de.podfetcher.feed;
package de.danoeh.antennapod.feed;
import java.util.ArrayList;
import java.util.Date;

View File

@ -1,4 +1,4 @@
package de.podfetcher.feed;
package de.danoeh.antennapod.feed;
public class FeedCategory extends FeedComponent{
protected String name;

View File

@ -1,4 +1,4 @@
package de.podfetcher.feed;
package de.danoeh.antennapod.feed;
/**
* Represents every possible component of a feed

View File

@ -1,4 +1,4 @@
package de.podfetcher.feed;
package de.danoeh.antennapod.feed;
/** Represents a component of a Feed that has to be downloaded*/
public abstract class FeedFile extends FeedComponent {

View File

@ -1,4 +1,4 @@
package de.podfetcher.feed;
package de.danoeh.antennapod.feed;
public class FeedImage extends FeedFile {

View File

@ -1,4 +1,4 @@
package de.podfetcher.feed;
package de.danoeh.antennapod.feed;
import java.util.ArrayList;
import java.util.Date;

View File

@ -1,16 +1,16 @@
package de.podfetcher.feed;
package de.danoeh.antennapod.feed;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import de.podfetcher.activity.MediaplayerActivity;
import de.podfetcher.asynctask.DownloadStatus;
import de.podfetcher.service.PlaybackService;
import de.podfetcher.storage.*;
import de.podfetcher.util.FeedItemPubdateComparator;
import de.podfetcher.util.FeedtitleComparator;
import de.danoeh.antennapod.activity.MediaplayerActivity;
import de.danoeh.antennapod.asynctask.DownloadStatus;
import de.danoeh.antennapod.service.PlaybackService;
import de.danoeh.antennapod.storage.*;
import de.danoeh.antennapod.util.FeedItemPubdateComparator;
import de.danoeh.antennapod.util.FeedtitleComparator;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
@ -25,10 +25,10 @@ import android.util.Log;
public class FeedManager {
private static final String TAG = "FeedManager";
public static final String ACTION_UNREAD_ITEMS_UPDATE = "de.podfetcher.action.feed.unreadItemsUpdate";
public static final String ACTION_QUEUE_UPDATE = "de.podfetcher.action.feed.queueUpdate";
public static final String EXTRA_FEED_ITEM_ID = "de.podfetcher.extra.feed.feedItemId";
public static final String EXTRA_FEED_ID = "de.podfetcher.extra.feed.feedId";
public static final String ACTION_UNREAD_ITEMS_UPDATE = "de.danoeh.antennapod.action.feed.unreadItemsUpdate";
public static final String ACTION_QUEUE_UPDATE = "de.danoeh.antennapod.action.feed.queueUpdate";
public static final String EXTRA_FEED_ITEM_ID = "de.danoeh.antennapod.extra.feed.feedItemId";
public static final String EXTRA_FEED_ID = "de.danoeh.antennapod.extra.feed.feedId";
/** Number of completed Download status entries to store. */
private static final int DOWNLOAD_LOG_SIZE = 25;

View File

@ -1,4 +1,4 @@
package de.podfetcher.feed;
package de.danoeh.antennapod.feed;
public class FeedMedia extends FeedFile{
private int duration;

View File

@ -1,4 +1,4 @@
package de.podfetcher.feed;
package de.danoeh.antennapod.feed;
public class SimpleChapter extends FeedComponent {
public long getStart() {

View File

@ -1,4 +1,4 @@
package de.podfetcher.fragment;
package de.danoeh.antennapod.fragment;
import android.os.Bundle;
import android.util.Log;
@ -10,12 +10,12 @@ import android.widget.TextView;
import com.actionbarsherlock.app.SherlockFragment;
import de.podfetcher.R;
import de.podfetcher.asynctask.FeedImageLoader;
import de.podfetcher.feed.Feed;
import de.podfetcher.feed.FeedItem;
import de.podfetcher.feed.FeedManager;
import de.podfetcher.feed.FeedMedia;
import de.danoeh.antennapod.asynctask.FeedImageLoader;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.feed.FeedItem;
import de.danoeh.antennapod.feed.FeedManager;
import de.danoeh.antennapod.feed.FeedMedia;
import de.danoeh.antennapod.R;
/** Displays the cover and the title of a FeedItem. */
public class CoverFragment extends SherlockFragment {

View File

@ -1,13 +1,13 @@
package de.podfetcher.fragment;
package de.danoeh.antennapod.fragment;
import de.podfetcher.R;
import de.podfetcher.feed.*;
import de.podfetcher.activity.*;
import de.podfetcher.adapter.FeedlistAdapter;
import de.podfetcher.asynctask.FeedRemover;
import de.podfetcher.storage.DownloadRequester;
import de.podfetcher.service.DownloadService;
import de.podfetcher.util.FeedMenuHandler;
import de.danoeh.antennapod.activity.*;
import de.danoeh.antennapod.adapter.FeedlistAdapter;
import de.danoeh.antennapod.asynctask.FeedRemover;
import de.danoeh.antennapod.feed.*;
import de.danoeh.antennapod.service.DownloadService;
import de.danoeh.antennapod.storage.DownloadRequester;
import de.danoeh.antennapod.util.FeedMenuHandler;
import de.danoeh.antennapod.R;
import android.os.Bundle;
import android.app.Activity;
import android.view.View;
@ -31,7 +31,7 @@ import android.util.Log;
public class FeedlistFragment extends SherlockListFragment implements
ActionMode.Callback {
private static final String TAG = "FeedlistFragment";
public static final String EXTRA_SELECTED_FEED = "extra.de.podfetcher.activity.selected_feed";
public static final String EXTRA_SELECTED_FEED = "extra.de.danoeh.antennapod.activity.selected_feed";
private FeedManager manager;
private FeedlistAdapter fla;

View File

@ -1,4 +1,4 @@
package de.podfetcher.fragment;
package de.danoeh.antennapod.fragment;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
@ -16,9 +16,9 @@ import android.webkit.WebView;
import com.actionbarsherlock.app.SherlockFragment;
import de.podfetcher.feed.Feed;
import de.podfetcher.feed.FeedItem;
import de.podfetcher.feed.FeedManager;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.feed.FeedItem;
import de.danoeh.antennapod.feed.FeedManager;
/** Displays the description of a FeedItem in a Webview. */
public class ItemDescriptionFragment extends SherlockFragment {

View File

@ -1,4 +1,4 @@
package de.podfetcher.fragment;
package de.danoeh.antennapod.fragment;
import java.util.ArrayList;
@ -18,23 +18,23 @@ import com.actionbarsherlock.view.Menu;
import com.actionbarsherlock.view.MenuInflater;
import com.actionbarsherlock.view.MenuItem;
import de.podfetcher.R;
import de.podfetcher.activity.ItemviewActivity;
import de.podfetcher.adapter.FeedItemlistAdapter;
import de.podfetcher.feed.Feed;
import de.podfetcher.feed.FeedItem;
import de.podfetcher.feed.FeedManager;
import de.podfetcher.service.DownloadService;
import de.podfetcher.storage.DownloadRequester;
import de.podfetcher.util.FeedItemMenuHandler;
import de.danoeh.antennapod.activity.ItemviewActivity;
import de.danoeh.antennapod.adapter.FeedItemlistAdapter;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.feed.FeedItem;
import de.danoeh.antennapod.feed.FeedManager;
import de.danoeh.antennapod.service.DownloadService;
import de.danoeh.antennapod.storage.DownloadRequester;
import de.danoeh.antennapod.util.FeedItemMenuHandler;
import de.danoeh.antennapod.R;
/** Displays a list of FeedItems. */
public class ItemlistFragment extends SherlockListFragment implements
ActionMode.Callback {
private static final String TAG = "ItemlistFragment";
public static final String EXTRA_SELECTED_FEEDITEM = "extra.de.podfetcher.activity.selected_feeditem";
public static final String ARGUMENT_FEED_ID = "argument.de.podfetcher.feed_id";
public static final String EXTRA_SELECTED_FEEDITEM = "extra.de.danoeh.antennapod.activity.selected_feeditem";
public static final String ARGUMENT_FEED_ID = "argument.de.danoeh.antennapod.feed_id";
protected FeedItemlistAdapter fila;
protected FeedManager manager;
protected DownloadRequester requester;

View File

@ -1,4 +1,4 @@
package de.podfetcher.fragment;
package de.danoeh.antennapod.fragment;
import android.content.BroadcastReceiver;
import android.content.Context;
@ -11,8 +11,8 @@ import com.actionbarsherlock.view.Menu;
import com.actionbarsherlock.view.MenuInflater;
import com.actionbarsherlock.view.MenuItem;
import de.podfetcher.R;
import de.podfetcher.feed.FeedManager;
import de.danoeh.antennapod.feed.FeedManager;
import de.danoeh.antennapod.R;
public class QueueFragment extends ItemlistFragment {

View File

@ -1,4 +1,4 @@
package de.podfetcher.fragment;
package de.danoeh.antennapod.fragment;
import com.actionbarsherlock.view.Menu;
import com.actionbarsherlock.view.MenuInflater;
@ -9,8 +9,8 @@ import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import de.podfetcher.R;
import de.podfetcher.feed.FeedManager;
import de.danoeh.antennapod.feed.FeedManager;
import de.danoeh.antennapod.R;
/** Contains all unread items. */
public class UnreadItemlistFragment extends ItemlistFragment {

View File

@ -1,7 +1,7 @@
package de.podfetcher.receiver;
package de.danoeh.antennapod.receiver;
import de.podfetcher.PodcastApp;
import de.podfetcher.feed.FeedManager;
import de.danoeh.antennapod.PodcastApp;
import de.danoeh.antennapod.feed.FeedManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
@ -13,7 +13,7 @@ import android.util.Log;
/** Refreshes all feeds when it receives an intent */
public class FeedUpdateReceiver extends BroadcastReceiver {
private static final String TAG = "FeedUpdateReceiver";
public static final String ACTION_REFRESH_FEEDS = "de.podfetcher.feedupdatereceiver.refreshFeeds";
public static final String ACTION_REFRESH_FEEDS = "de.danoeh.antennapod.feedupdatereceiver.refreshFeeds";
@Override
public void onReceive(Context context, Intent intent) {

View File

@ -1,6 +1,6 @@
package de.podfetcher.receiver;
package de.danoeh.antennapod.receiver;
import de.podfetcher.service.PlaybackService;
import de.danoeh.antennapod.service.PlaybackService;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
@ -13,9 +13,9 @@ import android.view.KeyEvent;
/** Receives media button events. */
public class MediaButtonReceiver extends BroadcastReceiver {
private static final String TAG = "MediaButtonReceiver";
public static final String EXTRA_KEYCODE = "de.podfetcher.service.extra.MediaButtonReceiver.KEYCODE";
public static final String EXTRA_KEYCODE = "de.danoeh.antennapod.service.extra.MediaButtonReceiver.KEYCODE";
public static final String NOTIFY_BUTTON_RECEIVER = "de.podfetcher.NOTIFY_BUTTON_RECEIVER";
public static final String NOTIFY_BUTTON_RECEIVER = "de.danoeh.antennapod.NOTIFY_BUTTON_RECEIVER";
@Override
public void onReceive(Context context, Intent intent) {

View File

@ -1,6 +1,6 @@
package de.podfetcher.receiver;
package de.danoeh.antennapod.receiver;
import de.podfetcher.service.PlayerWidgetService;
import de.danoeh.antennapod.service.PlayerWidgetService;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
@ -9,7 +9,7 @@ import android.util.Log;
public class PlayerWidget extends AppWidgetProvider {
private static final String TAG = "PlayerWidget";
public static final String FORCE_WIDGET_UPDATE = "de.podfetcher.FORCE_WIDGET_UPDATE";
public static final String FORCE_WIDGET_UPDATE = "de.danoeh.antennapod.FORCE_WIDGET_UPDATE";
@Override
public void onReceive(Context context, Intent intent) {

View File

@ -3,7 +3,7 @@
* to complete, then stops
* */
package de.podfetcher.service;
package de.danoeh.antennapod.service;
import java.io.File;
import java.io.IOException;
@ -16,17 +16,17 @@ import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
import de.podfetcher.activity.DownloadActivity;
import de.podfetcher.activity.MediaplayerActivity;
import de.podfetcher.activity.PodfetcherActivity;
import de.podfetcher.asynctask.DownloadObserver;
import de.podfetcher.asynctask.DownloadStatus;
import de.podfetcher.feed.*;
import de.podfetcher.service.PlaybackService.LocalBinder;
import de.podfetcher.storage.DownloadRequester;
import de.podfetcher.syndication.handler.FeedHandler;
import de.podfetcher.syndication.handler.UnsupportedFeedtypeException;
import de.podfetcher.util.DownloadError;
import de.danoeh.antennapod.activity.DownloadActivity;
import de.danoeh.antennapod.activity.MediaplayerActivity;
import de.danoeh.antennapod.activity.MainActivity;
import de.danoeh.antennapod.asynctask.DownloadObserver;
import de.danoeh.antennapod.asynctask.DownloadStatus;
import de.danoeh.antennapod.feed.*;
import de.danoeh.antennapod.service.PlaybackService.LocalBinder;
import de.danoeh.antennapod.storage.DownloadRequester;
import de.danoeh.antennapod.syndication.handler.FeedHandler;
import de.danoeh.antennapod.syndication.handler.UnsupportedFeedtypeException;
import de.danoeh.antennapod.util.DownloadError;
import android.R;
import android.app.Notification;
import android.app.NotificationManager;
@ -53,16 +53,16 @@ import android.os.Messenger;
public class DownloadService extends Service {
private static final String TAG = "DownloadService";
public static String ACTION_ALL_FEED_DOWNLOADS_COMPLETED = "action.de.podfetcher.storage.all_feed_downloads_completed";
public static final String ACTION_FEED_SYNC_COMPLETED = "action.de.podfetcher.service.feed_sync_completed";
public static String ACTION_ALL_FEED_DOWNLOADS_COMPLETED = "action.de.danoeh.antennapod.storage.all_feed_downloads_completed";
public static final String ACTION_FEED_SYNC_COMPLETED = "action.de.danoeh.antennapod.service.feed_sync_completed";
public static final String ACTION_DOWNLOAD_HANDLED = "action.de.podfetcher.service.download_handled";
public static final String ACTION_DOWNLOAD_HANDLED = "action.de.danoeh.antennapod.service.download_handled";
/** True if handled feed has an image. */
public static final String EXTRA_FEED_HAS_IMAGE = "extra.de.podfetcher.service.feed_has_image";
public static final String EXTRA_FEED_HAS_IMAGE = "extra.de.danoeh.antennapod.service.feed_has_image";
/** ID of DownloadStatus. */
public static final String EXTRA_STATUS_ID = "extra.de.podfetcher.service.feedfile_id";
public static final String EXTRA_DOWNLOAD_ID = "extra.de.podfetcher.service.download_id";
public static final String EXTRA_IMAGE_DOWNLOAD_ID = "extra.de.podfetcher.service.image_download_id";
public static final String EXTRA_STATUS_ID = "extra.de.danoeh.antennapod.service.feedfile_id";
public static final String EXTRA_DOWNLOAD_ID = "extra.de.danoeh.antennapod.service.download_id";
public static final String EXTRA_IMAGE_DOWNLOAD_ID = "extra.de.danoeh.antennapod.service.image_download_id";
private ArrayList<DownloadStatus> completedDownloads;
@ -289,9 +289,9 @@ public class DownloadService extends Service {
// create notification object
Notification notification = new NotificationCompat.Builder(this)
.setTicker(
getString(de.podfetcher.R.string.download_report_title))
getString(de.danoeh.antennapod.R.string.download_report_title))
.setContentTitle(
getString(de.podfetcher.R.string.download_report_title))
getString(de.danoeh.antennapod.R.string.download_report_title))
.setContentText(
successfulDownloads + " Downloads succeeded, "
+ failedDownloads + " failed")
@ -301,7 +301,7 @@ public class DownloadService extends Service {
R.drawable.stat_notify_sync))
.setContentIntent(
PendingIntent.getActivity(this, 0, new Intent(this,
PodfetcherActivity.class), 0))
MainActivity.class), 0))
.setAutoCancel(true).getNotification();
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
nm.notify(REPORT_ID, notification);

View File

@ -1,4 +1,4 @@
package de.podfetcher.service;
package de.danoeh.antennapod.service;
import java.io.IOException;
@ -24,14 +24,14 @@ import android.support.v4.app.NotificationCompat;
import android.util.Log;
import android.view.KeyEvent;
import android.view.SurfaceHolder;
import de.podfetcher.PodcastApp;
import de.podfetcher.activity.MediaplayerActivity;
import de.podfetcher.feed.Feed;
import de.podfetcher.feed.FeedItem;
import de.podfetcher.feed.FeedManager;
import de.podfetcher.feed.FeedMedia;
import de.podfetcher.receiver.MediaButtonReceiver;
import de.podfetcher.receiver.PlayerWidget;
import de.danoeh.antennapod.PodcastApp;
import de.danoeh.antennapod.activity.MediaplayerActivity;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.feed.FeedItem;
import de.danoeh.antennapod.feed.FeedManager;
import de.danoeh.antennapod.feed.FeedMedia;
import de.danoeh.antennapod.receiver.MediaButtonReceiver;
import de.danoeh.antennapod.receiver.PlayerWidget;
/** Controls the MediaPlayer that plays a FeedMedia-file */
public class PlaybackService extends Service {
@ -39,29 +39,29 @@ public class PlaybackService extends Service {
private static final String TAG = "PlaybackService";
/** Contains the id of the media that was played last. */
public static final String PREF_LAST_PLAYED_ID = "de.podfetcher.preferences.lastPlayedId";
public static final String PREF_LAST_PLAYED_ID = "de.danoeh.antennapod.preferences.lastPlayedId";
/** Contains the feed id of the last played item. */
public static final String PREF_LAST_PLAYED_FEED_ID = "de.podfetcher.preferences.lastPlayedFeedId";
public static final String PREF_LAST_PLAYED_FEED_ID = "de.danoeh.antennapod.preferences.lastPlayedFeedId";
/** True if last played media was streamed. */
public static final String PREF_LAST_IS_STREAM = "de.podfetcher.preferences.lastIsStream";
public static final String PREF_LAST_IS_STREAM = "de.danoeh.antennapod.preferences.lastIsStream";
/** Contains the id of the FeedMedia object. */
public static final String EXTRA_MEDIA_ID = "extra.de.podfetcher.service.mediaId";
public static final String EXTRA_MEDIA_ID = "extra.de.danoeh.antennapod.service.mediaId";
/** Contains the id of the Feed object of the FeedMedia. */
public static final String EXTRA_FEED_ID = "extra.de.podfetcher.service.feedId";
public static final String EXTRA_FEED_ID = "extra.de.danoeh.antennapod.service.feedId";
/** True if media should be streamed. */
public static final String EXTRA_SHOULD_STREAM = "extra.de.podfetcher.service.shouldStream";
public static final String EXTRA_SHOULD_STREAM = "extra.de.danoeh.antennapod.service.shouldStream";
/**
* True if playback should be started immediately after media has been
* prepared.
*/
public static final String EXTRA_START_WHEN_PREPARED = "extra.de.podfetcher.service.startWhenPrepared";
public static final String EXTRA_START_WHEN_PREPARED = "extra.de.danoeh.antennapod.service.startWhenPrepared";
public static final String ACTION_PLAYER_STATUS_CHANGED = "action.de.podfetcher.service.playerStatusChanged";
public static final String ACTION_PLAYER_STATUS_CHANGED = "action.de.danoeh.antennapod.service.playerStatusChanged";
public static final String ACTION_PLAYER_NOTIFICATION = "action.de.podfetcher.service.playerNotification";
public static final String EXTRA_NOTIFICATION_CODE = "extra.de.podfetcher.service.notificationCode";
public static final String EXTRA_NOTIFICATION_TYPE = "extra.de.podfetcher.service.notificationType";
public static final String ACTION_PLAYER_NOTIFICATION = "action.de.danoeh.antennapod.service.playerNotification";
public static final String EXTRA_NOTIFICATION_CODE = "extra.de.danoeh.antennapod.service.notificationCode";
public static final String EXTRA_NOTIFICATION_TYPE = "extra.de.danoeh.antennapod.service.notificationType";
public static final int NOTIFICATION_TYPE_ERROR = 0;
public static final int NOTIFICATION_TYPE_INFO = 1;

View File

@ -1,4 +1,4 @@
package de.podfetcher.service;
package de.danoeh.antennapod.service;
public enum PlayerStatus {
ERROR, PREPARING, PAUSED, PLAYING, STOPPED, PREPARED, SEEKING, AWAITING_VIDEO_SURFACE

View File

@ -1,4 +1,4 @@
package de.podfetcher.service;
package de.danoeh.antennapod.service;
import android.app.PendingIntent;
import android.app.Service;
@ -12,12 +12,12 @@ import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.widget.RemoteViews;
import de.podfetcher.R;
import de.podfetcher.activity.MediaplayerActivity;
import de.podfetcher.feed.FeedMedia;
import de.podfetcher.receiver.MediaButtonReceiver;
import de.podfetcher.receiver.PlayerWidget;
import de.podfetcher.util.Converter;
import de.danoeh.antennapod.activity.MediaplayerActivity;
import de.danoeh.antennapod.feed.FeedMedia;
import de.danoeh.antennapod.receiver.MediaButtonReceiver;
import de.danoeh.antennapod.receiver.PlayerWidget;
import de.danoeh.antennapod.util.Converter;
import de.danoeh.antennapod.R;
/** Updates the state of the player widget */
public class PlayerWidgetService extends Service {

View File

@ -1,13 +1,13 @@
package de.podfetcher.storage;
package de.danoeh.antennapod.storage;
import java.util.ArrayList;
import java.io.File;
import java.util.concurrent.Callable;
import de.podfetcher.feed.*;
import de.podfetcher.service.DownloadService;
import de.podfetcher.util.NumberGenerator;
import de.podfetcher.R;
import de.danoeh.antennapod.feed.*;
import de.danoeh.antennapod.service.DownloadService;
import de.danoeh.antennapod.util.NumberGenerator;
import de.danoeh.antennapod.R;
import android.util.Log;
import android.database.Cursor;
@ -28,10 +28,10 @@ public class DownloadRequester {
private static final String TAG = "DownloadRequester";
private static final int currentApi = android.os.Build.VERSION.SDK_INT;
public static String EXTRA_DOWNLOAD_ID = "extra.de.podfetcher.storage.download_id";
public static String EXTRA_ITEM_ID = "extra.de.podfetcher.storage.item_id";
public static String EXTRA_DOWNLOAD_ID = "extra.de.danoeh.antennapod.storage.download_id";
public static String EXTRA_ITEM_ID = "extra.de.danoeh.antennapod.storage.item_id";
public static String ACTION_DOWNLOAD_QUEUED = "action.de.podfetcher.storage.downloadQueued";
public static String ACTION_DOWNLOAD_QUEUED = "action.de.danoeh.antennapod.storage.downloadQueued";
private static boolean STORE_ON_SD = true;

View File

@ -1,14 +1,14 @@
package de.podfetcher.storage;
package de.danoeh.antennapod.storage;
import java.util.ArrayList;
import de.podfetcher.asynctask.DownloadStatus;
import de.podfetcher.feed.Feed;
import de.podfetcher.feed.FeedCategory;
import de.podfetcher.feed.FeedImage;
import de.podfetcher.feed.FeedItem;
import de.podfetcher.feed.FeedMedia;
import de.podfetcher.feed.SimpleChapter;
import de.danoeh.antennapod.asynctask.DownloadStatus;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.feed.FeedCategory;
import de.danoeh.antennapod.feed.FeedImage;
import de.danoeh.antennapod.feed.FeedItem;
import de.danoeh.antennapod.feed.FeedMedia;
import de.danoeh.antennapod.feed.SimpleChapter;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
@ -24,7 +24,7 @@ import android.util.Log;
public class PodDBAdapter {
private static final String TAG = "PodDBAdapter";
private static final int DATABASE_VERSION = 1;
private static final String DATABASE_NAME = "Podfetcher.db";
private static final String DATABASE_NAME = "Antennapod.db";
// Key-constants
public static final String KEY_ID = "id";
@ -547,7 +547,7 @@ public class PodDBAdapter {
return image;
}
/** Helper class for opening the Podfetcher database. */
/** Helper class for opening the Antennapod database. */
private static class PodDBHelper extends SQLiteOpenHelper {
/**

View File

@ -1,4 +1,4 @@
package de.podfetcher.syndication.handler;
package de.danoeh.antennapod.syndication.handler;
import java.io.File;
import java.io.IOException;
@ -9,7 +9,7 @@ import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.SAXException;
import de.podfetcher.feed.Feed;
import de.danoeh.antennapod.feed.Feed;
public class FeedHandler {

View File

@ -1,13 +1,13 @@
package de.podfetcher.syndication.handler;
package de.danoeh.antennapod.syndication.handler;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Stack;
import de.podfetcher.syndication.namespace.Namespace;
import de.podfetcher.syndication.namespace.SyndElement;
import de.podfetcher.feed.Feed;
import de.podfetcher.feed.FeedItem;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.feed.FeedItem;
import de.danoeh.antennapod.syndication.namespace.Namespace;
import de.danoeh.antennapod.syndication.namespace.SyndElement;
/** Contains all relevant information to describe the current state of a SyndHandler.*/
public class HandlerState {

View File

@ -1,4 +1,4 @@
package de.podfetcher.syndication.handler;
package de.danoeh.antennapod.syndication.handler;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
@ -6,14 +6,14 @@ import org.xml.sax.helpers.DefaultHandler;
import android.util.Log;
import de.podfetcher.feed.Feed;
import de.podfetcher.syndication.namespace.Namespace;
import de.podfetcher.syndication.namespace.SyndElement;
import de.podfetcher.syndication.namespace.atom.NSAtom;
import de.podfetcher.syndication.namespace.content.NSContent;
import de.podfetcher.syndication.namespace.itunes.NSITunes;
import de.podfetcher.syndication.namespace.rss20.NSRSS20;
import de.podfetcher.syndication.namespace.simplechapters.NSSimpleChapters;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.syndication.namespace.Namespace;
import de.danoeh.antennapod.syndication.namespace.SyndElement;
import de.danoeh.antennapod.syndication.namespace.atom.NSAtom;
import de.danoeh.antennapod.syndication.namespace.content.NSContent;
import de.danoeh.antennapod.syndication.namespace.itunes.NSITunes;
import de.danoeh.antennapod.syndication.namespace.rss20.NSRSS20;
import de.danoeh.antennapod.syndication.namespace.simplechapters.NSSimpleChapters;
/** Superclass for all SAX Handlers which process Syndication formats */
public class SyndHandler extends DefaultHandler {

View File

@ -1,4 +1,4 @@
package de.podfetcher.syndication.handler;
package de.danoeh.antennapod.syndication.handler;
import java.io.File;
import java.io.FileNotFoundException;
@ -12,7 +12,7 @@ import org.xmlpull.v1.XmlPullParserFactory;
import android.util.Log;
import de.podfetcher.feed.Feed;
import de.danoeh.antennapod.feed.Feed;
/** Gets the type of a specific feed by reading the root element. */
public class TypeGetter {

View File

@ -1,6 +1,6 @@
package de.podfetcher.syndication.handler;
package de.danoeh.antennapod.syndication.handler;
import de.podfetcher.syndication.handler.TypeGetter.Type;
import de.danoeh.antennapod.syndication.handler.TypeGetter.Type;
public class UnsupportedFeedtypeException extends Exception {
private static final long serialVersionUID = 9105878964928170669L;

View File

@ -1,9 +1,9 @@
package de.podfetcher.syndication.namespace;
package de.danoeh.antennapod.syndication.namespace;
import org.xml.sax.Attributes;
import de.podfetcher.feed.Feed;
import de.podfetcher.syndication.handler.HandlerState;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.syndication.handler.HandlerState;
public abstract class Namespace {

View File

@ -1,4 +1,4 @@
package de.podfetcher.syndication.namespace;
package de.danoeh.antennapod.syndication.namespace;
/** Defines a XML Element that is pushed on the tagstack */
public class SyndElement {

View File

@ -1,9 +1,9 @@
package de.podfetcher.syndication.namespace.atom;
package de.danoeh.antennapod.syndication.namespace.atom;
import org.apache.commons.lang3.StringEscapeUtils;
import de.podfetcher.syndication.namespace.Namespace;
import de.podfetcher.syndication.namespace.SyndElement;
import de.danoeh.antennapod.syndication.namespace.Namespace;
import de.danoeh.antennapod.syndication.namespace.SyndElement;
/** Represents Atom Element which contains text (content, title, summary). */
public class AtomText extends SyndElement {

View File

@ -1,18 +1,18 @@
package de.podfetcher.syndication.namespace.atom;
package de.danoeh.antennapod.syndication.namespace.atom;
import org.xml.sax.Attributes;
import android.util.Log;
import de.podfetcher.feed.Feed;
import de.podfetcher.feed.FeedImage;
import de.podfetcher.feed.FeedItem;
import de.podfetcher.feed.FeedMedia;
import de.podfetcher.syndication.handler.HandlerState;
import de.podfetcher.syndication.namespace.Namespace;
import de.podfetcher.syndication.namespace.SyndElement;
import de.podfetcher.syndication.namespace.rss20.NSRSS20;
import de.podfetcher.syndication.util.SyndDateUtils;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.feed.FeedImage;
import de.danoeh.antennapod.feed.FeedItem;
import de.danoeh.antennapod.feed.FeedMedia;
import de.danoeh.antennapod.syndication.handler.HandlerState;
import de.danoeh.antennapod.syndication.namespace.Namespace;
import de.danoeh.antennapod.syndication.namespace.SyndElement;
import de.danoeh.antennapod.syndication.namespace.rss20.NSRSS20;
import de.danoeh.antennapod.syndication.util.SyndDateUtils;
public class NSAtom extends Namespace {
private static final String TAG = "NSAtom";

View File

@ -1,11 +1,12 @@
package de.podfetcher.syndication.namespace.content;
package de.danoeh.antennapod.syndication.namespace.content;
import org.xml.sax.Attributes;
import de.podfetcher.syndication.handler.HandlerState;
import de.podfetcher.syndication.namespace.Namespace;
import de.podfetcher.syndication.namespace.SyndElement;
import de.podfetcher.syndication.namespace.rss20.NSRSS20;
import de.danoeh.antennapod.syndication.handler.HandlerState;
import de.danoeh.antennapod.syndication.namespace.Namespace;
import de.danoeh.antennapod.syndication.namespace.SyndElement;
import de.danoeh.antennapod.syndication.namespace.rss20.NSRSS20;
import org.apache.commons.lang3.StringEscapeUtils;
public class NSContent extends Namespace {

View File

@ -1,11 +1,11 @@
package de.podfetcher.syndication.namespace.itunes;
package de.danoeh.antennapod.syndication.namespace.itunes;
import org.xml.sax.Attributes;
import de.podfetcher.feed.FeedImage;
import de.podfetcher.syndication.handler.HandlerState;
import de.podfetcher.syndication.namespace.Namespace;
import de.podfetcher.syndication.namespace.SyndElement;
import de.danoeh.antennapod.feed.FeedImage;
import de.danoeh.antennapod.syndication.handler.HandlerState;
import de.danoeh.antennapod.syndication.namespace.Namespace;
import de.danoeh.antennapod.syndication.namespace.SyndElement;
public class NSITunes extends Namespace{
public static final String NSTAG = "itunes";

View File

@ -1,17 +1,17 @@
package de.podfetcher.syndication.namespace.rss20;
package de.danoeh.antennapod.syndication.namespace.rss20;
import java.util.ArrayList;
import java.util.Date;
import de.podfetcher.feed.Feed;
import de.podfetcher.feed.FeedImage;
import de.podfetcher.feed.FeedItem;
import de.podfetcher.feed.FeedMedia;
import de.podfetcher.syndication.handler.HandlerState;
import de.podfetcher.syndication.handler.SyndHandler;
import de.podfetcher.syndication.namespace.Namespace;
import de.podfetcher.syndication.namespace.SyndElement;
import de.podfetcher.syndication.util.SyndDateUtils;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.feed.FeedImage;
import de.danoeh.antennapod.feed.FeedItem;
import de.danoeh.antennapod.feed.FeedMedia;
import de.danoeh.antennapod.syndication.handler.HandlerState;
import de.danoeh.antennapod.syndication.handler.SyndHandler;
import de.danoeh.antennapod.syndication.namespace.Namespace;
import de.danoeh.antennapod.syndication.namespace.SyndElement;
import de.danoeh.antennapod.syndication.util.SyndDateUtils;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;

View File

@ -1,14 +1,14 @@
package de.podfetcher.syndication.namespace.simplechapters;
package de.danoeh.antennapod.syndication.namespace.simplechapters;
import java.util.ArrayList;
import org.xml.sax.Attributes;
import de.podfetcher.feed.SimpleChapter;
import de.podfetcher.syndication.handler.HandlerState;
import de.podfetcher.syndication.namespace.Namespace;
import de.podfetcher.syndication.namespace.SyndElement;
import de.podfetcher.syndication.util.SyndDateUtils;
import de.danoeh.antennapod.feed.SimpleChapter;
import de.danoeh.antennapod.syndication.handler.HandlerState;
import de.danoeh.antennapod.syndication.namespace.Namespace;
import de.danoeh.antennapod.syndication.namespace.SyndElement;
import de.danoeh.antennapod.syndication.util.SyndDateUtils;
public class NSSimpleChapters extends Namespace {
public static final String NSTAG = "sc";

View File

@ -1,4 +1,4 @@
package de.podfetcher.syndication.util;
package de.danoeh.antennapod.syndication.util;
import java.text.ParseException;
import java.text.SimpleDateFormat;

View File

@ -1,4 +1,4 @@
package de.podfetcher.util;
package de.danoeh.antennapod.util;
import java.io.IOException;
import java.net.HttpURLConnection;

View File

@ -1,4 +1,4 @@
package de.podfetcher.util;
package de.danoeh.antennapod.util;
import android.util.Log;

View File

@ -1,6 +1,6 @@
package de.podfetcher.util;
package de.danoeh.antennapod.util;
import de.podfetcher.R;
import de.danoeh.antennapod.R;
import android.app.DownloadManager;
import android.content.Context;

View File

@ -1,4 +1,4 @@
package de.podfetcher.util;
package de.danoeh.antennapod.util;
import android.content.Context;
import android.content.Intent;
@ -8,10 +8,10 @@ import com.actionbarsherlock.view.Menu;
import com.actionbarsherlock.view.MenuInflater;
import com.actionbarsherlock.view.MenuItem;
import de.podfetcher.R;
import de.podfetcher.feed.FeedItem;
import de.podfetcher.feed.FeedManager;
import de.podfetcher.storage.DownloadRequester;
import de.danoeh.antennapod.feed.FeedItem;
import de.danoeh.antennapod.feed.FeedManager;
import de.danoeh.antennapod.storage.DownloadRequester;
import de.danoeh.antennapod.R;
/** Handles interactions with the FeedItemMenu. */
public class FeedItemMenuHandler {

View File

@ -1,8 +1,8 @@
package de.podfetcher.util;
package de.danoeh.antennapod.util;
import java.util.Comparator;
import de.podfetcher.feed.FeedItem;
import de.danoeh.antennapod.feed.FeedItem;
/** Compares the pubDate of two FeedItems for sorting*/
public class FeedItemPubdateComparator implements Comparator<FeedItem> {

View File

@ -1,4 +1,4 @@
package de.podfetcher.util;
package de.danoeh.antennapod.util;
import android.content.Context;
import android.content.Intent;
@ -10,13 +10,13 @@ import com.actionbarsherlock.view.Menu;
import com.actionbarsherlock.view.MenuInflater;
import com.actionbarsherlock.view.MenuItem;
import de.podfetcher.R;
import de.podfetcher.activity.FeedInfoActivity;
import de.podfetcher.feed.Feed;
import de.podfetcher.feed.FeedItem;
import de.podfetcher.feed.FeedManager;
import de.podfetcher.service.DownloadService;
import de.podfetcher.storage.DownloadRequester;
import de.danoeh.antennapod.activity.FeedInfoActivity;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.feed.FeedItem;
import de.danoeh.antennapod.feed.FeedManager;
import de.danoeh.antennapod.service.DownloadService;
import de.danoeh.antennapod.storage.DownloadRequester;
import de.danoeh.antennapod.R;
/** Handles interactions with the FeedItemMenu. */
public class FeedMenuHandler {

View File

@ -1,8 +1,8 @@
package de.podfetcher.util;
package de.danoeh.antennapod.util;
import java.util.Comparator;
import de.podfetcher.feed.Feed;
import de.danoeh.antennapod.feed.Feed;
/** Compares the title of two feeds for sorting. */
public class FeedtitleComparator implements Comparator<Feed> {

View File

@ -1,4 +1,4 @@
package de.podfetcher.util;
package de.danoeh.antennapod.util;
import java.util.EnumSet;
@ -20,9 +20,9 @@ import android.net.Uri;
import android.preference.PreferenceManager;
import android.util.Log;
import android.widget.Toast;
import de.podfetcher.PodcastApp;
import de.podfetcher.R;
import de.podfetcher.activity.FlattrAuthActivity;
import de.danoeh.antennapod.PodcastApp;
import de.danoeh.antennapod.activity.FlattrAuthActivity;
import de.danoeh.antennapod.R;
/** Utility methods for doing something with flattr. */
public class FlattrUtils {

View File

@ -1,6 +1,6 @@
package de.podfetcher.util;
package de.danoeh.antennapod.util;
import de.podfetcher.R;
import de.danoeh.antennapod.R;
import android.content.Context;
import android.media.MediaPlayer;

View File

@ -1,4 +1,4 @@
package de.podfetcher.util;
package de.danoeh.antennapod.util;
import java.util.Random;
import android.util.Log;

View File

@ -1,7 +1,7 @@
package de.podfetcher.util;
package de.danoeh.antennapod.util;
import de.podfetcher.feed.Feed;
import de.podfetcher.feed.FeedItem;
import de.danoeh.antennapod.feed.Feed;
import de.danoeh.antennapod.feed.FeedItem;
import android.content.Context;
import android.content.Intent;

View File

@ -1,6 +1,6 @@
package de.podfetcher.util;
package de.danoeh.antennapod.util;
import de.podfetcher.activity.StorageErrorActivity;
import de.danoeh.antennapod.activity.StorageErrorActivity;
import android.app.Activity;
import android.content.Intent;
import android.os.Environment;

View File

@ -1,4 +1,4 @@
package de.podfetcher.util;
package de.danoeh.antennapod.util;
import android.util.Log;