2011-12-23 19:22:06 +01:00
|
|
|
package de.podfetcher;
|
|
|
|
|
2011-12-28 18:18:13 +01:00
|
|
|
import de.podfetcher.activity.PodfetcherActivity;
|
2012-04-11 18:14:43 +02:00
|
|
|
import de.podfetcher.feed.FeedManager;
|
2011-12-23 19:22:06 +01:00
|
|
|
import android.app.Application;
|
|
|
|
|
2012-04-11 13:24:12 +02:00
|
|
|
public class PodcastApp extends Application {
|
2012-04-11 16:53:29 +02:00
|
|
|
private static final String TAG = "PodcastApp";
|
2012-06-22 13:49:01 +02:00
|
|
|
public static final String PREF_NAME = "PodfetcherPrefs";
|
|
|
|
|
2012-04-11 16:53:29 +02:00
|
|
|
|
2011-12-23 19:22:06 +01:00
|
|
|
private static PodcastApp singleton;
|
|
|
|
|
|
|
|
public static PodcastApp getInstance() {
|
|
|
|
return singleton;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onCreate() {
|
|
|
|
super.onCreate();
|
|
|
|
singleton = this;
|
|
|
|
|
2012-04-11 18:14:43 +02:00
|
|
|
FeedManager manager = FeedManager.getInstance();
|
|
|
|
manager.loadDBData(getApplicationContext());
|
2011-12-23 19:22:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-06-28 17:07:33 +02:00
|
|
|
|
2011-12-23 19:22:06 +01:00
|
|
|
|
|
|
|
}
|