blob: 7fd9c617d170b8396c4333278256cab10ebe1b16 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package org.fox.epube;
import java.net.CookieHandler;
import java.net.CookieManager;
public class Application extends android.app.Application {
private static Application m_singleton;
@Override
public final void onCreate() {
super.onCreate();
CookieManager cookieManager = new CookieManager();
CookieHandler.setDefault(cookieManager);
m_singleton = this;
}
public static Application getInstance() {
return m_singleton;
}
}
|