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