Rev 12 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12 | Rev 20 | ||
---|---|---|---|
1 | /*
|
1 | /*
|
2 | * Copyright (C) 2010 Thomas Lahn
|
2 | * Copyright (C) 2010 Thomas Lahn
|
3 | */
|
3 | */
|
4 | 4 | ||
5 | package de.pointedears.converter; |
5 | package de.pointedears.converter; |
6 | 6 | ||
7 | import android.app.Application; |
7 | import android.app.Application; |
- | 8 | import android.content.Intent; |
|
- | 9 | import de.pointedears.converter.helpers.UpdateService; |
|
8 | 10 | ||
9 | /**
|
11 | /**
|
10 | * Converter application class. Holds the intent category for building
|
12 | * Converter application class. Holds the intent category for building
|
11 | * the list menu. Might later initialize prefs.
|
13 | * the list menu. Might later initialize prefs.
|
12 | *
|
14 | *
|
13 | * @author Thomas 'PointedEars' Lahn
|
15 | * @author Thomas 'PointedEars' Lahn
|
14 | */
|
16 | */
|
15 | public class ConverterApplication extends Application |
17 | public class ConverterApplication extends Application |
16 | {
|
18 | {
|
17 | /**
|
19 | /**
|
18 | * Activity category for automatically filtering converter Activities
|
20 | * Activity category for automatically filtering converter Activities
|
19 | */
|
21 | */
|
20 | public final static String CATEGORY_CONVERTER = |
22 | public final static String CATEGORY_CONVERTER = |
21 | "android.intent.category.CONVERTER"; //$NON-NLS-1$ |
23 | "android.intent.category.CONVERTER"; //$NON-NLS-1$ |
22 | 24 | ||
23 | /*
|
25 | /*
|
24 | * (non-Javadoc)
|
26 | * (non-Javadoc)
|
25 | *
|
27 | *
|
26 | * @see android.app.Application#onCreate()
|
28 | * @see android.app.Application#onCreate()
|
27 | */
|
29 | */
|
28 | @Override |
30 | @Override |
29 | public void onCreate() |
31 | public void onCreate() |
30 | {
|
32 | {
|
- | 33 | this.startService(new Intent(this, UpdateService.class)); |
|
- | 34 | ||
31 | /*
|
35 | /*
|
32 | * This populates the default values from the preferences XML file. See
|
36 | * This populates the default values from the preferences XML file. See
|
33 | * {@link DefaultValues} for more details.
|
37 | * {@link DefaultValues} for more details.
|
34 | */
|
38 | */
|
35 | // PreferenceManager.setDefaultValues(this, R.xml.default_values, false);
|
39 | // PreferenceManager.setDefaultValues(this, R.xml.default_values, false);
|
36 | }
|
40 | }
|
37 | 41 | ||
38 | /*
|
42 | /*
|
39 | * (non-Javadoc)
|
43 | * (non-Javadoc)
|
40 | *
|
44 | *
|
41 | * @see android.app.Application#onTerminate()
|
45 | * @see android.app.Application#onTerminate()
|
42 | */
|
46 | */
|
43 | @Override |
47 | @Override |
44 | public void onTerminate() |
48 | public void onTerminate() |
45 | {
|
49 | {
|
46 | }
|
50 | }
|
47 | }
|
51 | }
|
48 | 52 |