public class

MapstedBaseApplication

extends Application
java.lang.Object
   ↳ Application
     ↳ com.mapsted.MapstedBaseApplication

Class Overview

If you have multiple activities in your project, then use this class as your application class (or derive this class if you already have your own application class). The main purpose of this class is to hold a single coreApi for your app. This class will keep track of your activities. Use setCoreApi() to store and getCoreApi() from different activities to retrieve the same coreApi instance. When the last activity is destroyed, the coreApi is destroyed as well. Until then, this coreApi can be re-used by other activities by calling Activity::getApplication() and casting it to this class type.

Summary

Public Constructors
MapstedBaseApplication()
Public Methods
CoreApi getCoreApi(Context context)
void onCreate()
void setCoreApi(CoreApi coreApi)
set the coreApi.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MapstedBaseApplication ()

Public Methods

public CoreApi getCoreApi (Context context)

public void onCreate ()

public void setCoreApi (CoreApi coreApi)

set the coreApi.

Throws
Exception