blob: add8bdd5a0c6eaeb28d43960f664534a4426594c [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";
Dave Bort31a6d1c2009-04-13 15:56:49 -070026
27 // Set to true to enable verbose logging.
John Reck6c2e2f32011-08-22 13:41:23 -070028 final static boolean LOGV_ENABLED = false;
Dave Bort31a6d1c2009-04-13 15:56:49 -070029
30 // Set to true to enable extra debug logging.
31 final static boolean LOGD_ENABLED = true;
32
John Reck6f48ba52010-12-03 16:03:14 -080033 @Override
The Android Open Source Project0c908882009-03-03 19:32:16 -080034 public void onCreate() {
Kristian Monsene800e8e2010-12-06 16:59:33 +000035 super.onCreate();
36
Dave Bort31a6d1c2009-04-13 15:56:49 -070037 if (LOGV_ENABLED)
The Android Open Source Project0c908882009-03-03 19:32:16 -080038 Log.v(LOGTAG, "Browser.onCreate: this=" + this);
Kristian Monsene800e8e2010-12-06 16:59:33 +000039
The Android Open Source Project0c908882009-03-03 19:32:16 -080040 // create CookieSyncManager with current Context
41 CookieSyncManager.createInstance(this);
John Reck35e9dd62011-04-25 09:01:54 -070042 BrowserSettings.initialize(getApplicationContext());
Michael Kolb14612442011-06-24 13:06:29 -070043 Preloader.initialize(getApplicationContext());
The Android Open Source Project0c908882009-03-03 19:32:16 -080044 }
45
The Android Open Source Project0c908882009-03-03 19:32:16 -080046}
47