Rev 5 | Rev 8 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5 | Rev 6 | ||
---|---|---|---|
Line 15... | Line 15... | ||
15 | */
|
15 | */
|
16 | 16 | ||
17 | package ch.ffhs.converter; |
17 | package ch.ffhs.converter; |
18 | 18 | ||
19 | import android.app.Application; |
19 | import android.app.Application; |
20 | import android.preference.PreferenceManager; |
- | |
21 | 20 | ||
22 | /**
|
21 | /**
|
23 | * This is an example of a {@link android.app.Application} class. Ordinarily you
|
22 | * This is an example of a {@link android.app.Application} class. Ordinarily you
|
24 | * would use
|
23 | * would use
|
25 | * a class like this as a central repository for information that might be
|
24 | * a class like this as a central repository for information that might be
|
Line 32... | Line 31... | ||
32 | * an example
|
31 | * an example
|
33 | * of how to perform unit tests on an Application object.
|
32 | * of how to perform unit tests on an Application object.
|
34 | */
|
33 | */
|
35 | public class ConverterApplication extends Application |
34 | public class ConverterApplication extends Application |
36 | {
|
35 | {
|
- | 36 | /**
|
|
- | 37 | * Activity category for automatically filtering converter Activities
|
|
- | 38 | */
|
|
- | 39 | public final static String CATEGORY_CONVERTER = |
|
- | 40 | "android.intent.category.CONVERTER"; |
|
37 | 41 | ||
38 | @Override |
42 | @Override |
39 | public void onCreate() |
43 | public void onCreate() |
40 | {
|
44 | {
|
41 | /*
|
45 | /*
|
42 | * This populates the default values from the preferences XML file. See
|
46 | * This populates the default values from the preferences XML file. See
|
43 | * {@link DefaultValues} for more details.
|
47 | * {@link DefaultValues} for more details.
|
44 | */
|
48 | */
|
45 | PreferenceManager.setDefaultValues(this, R.xml.default_values, false); |
49 | // PreferenceManager.setDefaultValues(this, R.xml.default_values, false);
|
46 | }
|
50 | }
|
47 | 51 | ||
48 | @Override |
52 | @Override |
49 | public void onTerminate() |
53 | public void onTerminate() |
50 | {
|
54 | {
|