blob: 76aaa0b890fbffe7d1ba7a6f5dff0c5c15ec335b [file] [log] [blame]
The Android Open Source Project0c908882009-03-03 19:32:16 -08001/*
2 * Copyright (C) 2006 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.browser;
18
The Android Open Source Project0c908882009-03-03 19:32:16 -080019import android.app.Application;
John Reck35e9dd62011-04-25 09:01:54 -070020import android.util.Log;
The Android Open Source Project0c908882009-03-03 19:32:16 -080021import android.webkit.CookieSyncManager;
22
The Android Open Source Project0c908882009-03-03 19:32:16 -080023public class Browser extends Application {
24
25 private final static String LOGTAG = "browser";
26
Dave Bort31a6d1c2009-04-13 15:56:49 -070027 // Set to true to enable extra debugging.
28 final static boolean DEBUG = false;
29
30 // Set to true to enable verbose logging.
31 final static boolean LOGV_ENABLED = DEBUG;
32
33 // Set to true to enable extra debug logging.
34 final static boolean LOGD_ENABLED = true;
35
John Reck6f48ba52010-12-03 16:03:14 -080036 @Override
The Android Open Source Project0c908882009-03-03 19:32:16 -080037 public void onCreate() {
Kristian Monsene800e8e2010-12-06 16:59:33 +000038 super.onCreate();
39
Dave Bort31a6d1c2009-04-13 15:56:49 -070040 if (LOGV_ENABLED)
The Android Open Source Project0c908882009-03-03 19:32:16 -080041 Log.v(LOGTAG, "Browser.onCreate: this=" + this);
Kristian Monsene800e8e2010-12-06 16:59:33 +000042
The Android Open Source Project0c908882009-03-03 19:32:16 -080043 // create CookieSyncManager with current Context
44 CookieSyncManager.createInstance(this);
John Reck35e9dd62011-04-25 09:01:54 -070045 BrowserSettings.initialize(getApplicationContext());
Michael Kolb14612442011-06-24 13:06:29 -070046 Preloader.initialize(getApplicationContext());
The Android Open Source Project0c908882009-03-03 19:32:16 -080047 }
48
The Android Open Source Project0c908882009-03-03 19:32:16 -080049}
50