ZygotePreload
public
interface
ZygotePreload
android.app.ZygotePreload |
This is the interface to be implemented for the class that is specified by the
android:zygotePreloadName
of the <application> tag.
It is responsible for preloading application code and data, that will be shared by all
isolated services that have the
android:useAppZygote
attribute
of the <service> tag set to true
.
Note that implementations of this class must provide a default constructor with no arguments.
Summary
Public methods | |
---|---|
abstract
void
|
doPreload(ApplicationInfo appInfo)
This method is called once every time the Application Zygote is started. |
Public methods
doPreload
public abstract void doPreload (ApplicationInfo appInfo)
This method is called once every time the Application Zygote is started. It is normally started the first time an isolated service that uses it is started. The Application Zygote will be stopped when all isolated services that use it are stopped.
Parameters | |
---|---|
appInfo |
ApplicationInfo : The ApplicationInfo object belonging to the application
This value cannot be null . |