public class ApplicationStarter
extends java.lang.Object
Serves for the registration of a timezone-change-receiver and must be called once during the start of an android application.
| Modifier and Type | Method and Description |
|---|---|
static void |
initialize(android.app.Application application)
Equivalent to
initialize(application, false). |
static void |
initialize(android.content.Context context,
boolean prefetch)
General purpose initialization.
|
static void |
prepareAssets(android.content.Context context,
AssetLocation assetLocation)
Prepares and optimizes the access to all internal asset files.
|
static void |
prepareResources(android.app.Application application)
Deprecated.
|
static void |
registerReceiver(android.content.Context context)
Registers a timezone-change-receiver on given app context.
|
public static void initialize(android.app.Application application)
Equivalent to initialize(application, false).
application - Android apppublic static void initialize(android.content.Context context,
boolean prefetch)
General purpose initialization.
context - Android contextprefetch - Getting standard data on background thread?@Deprecated public static void prepareResources(android.app.Application application)
prepareAssets(Context, AssetLocation)Prepares and optimizes the access to all internal resource files.
The application parameter should be specified otherwise Time4A will try to find the assets via the classloader and is likely to fail.
application - Android apppublic static void prepareAssets(android.content.Context context,
AssetLocation assetLocation)
Prepares and optimizes the access to all internal asset files.
The context parameter must be specified while the second parameter is optional.
context - Android contextassetLocation - environment of assets (optional, maybe null)public static void registerReceiver(android.content.Context context)
Registers a timezone-change-receiver on given app context.
If the context parameter is null then this method does nothing.
In this case, any change of the system timezone will not be tracked.
context - application context