6.3.2.1.2. GISApplication

public abstract class GISApplication extends Application implements IGISApplication

This is a base application class. Each application should inherited their base application from this class. The main application class stored some singleton objects.

Author:Dmitry Baryshnikov (aka Bishop), bishop.dev@gmail.com

6.3.2.1.2.1. Fields

6.3.2.1.2.1.1. mAccountManager

protected AccountManager mAccountManager

6.3.2.1.2.1.2. mGpsEventSource

protected GpsEventSource mGpsEventSource

6.3.2.1.2.1.3. mMap

protected MapDrawable mMap

6.3.2.1.2.1.4. mSharedPreferences

protected SharedPreferences mSharedPreferences

6.3.2.1.2.2. Methods

6.3.2.1.2.2.1. addAccount

public boolean addAccount(String name, String url, String login, String password, String token)

6.3.2.1.2.2.2. getAccount

public Account getAccount(String accountName)

6.3.2.1.2.2.3. getAccountLogin

public String getAccountLogin(Account account)

6.3.2.1.2.2.4. getAccountPassword

public String getAccountPassword(Account account)

6.3.2.1.2.2.5. getAccountUrl

public String getAccountUrl(Account account)

6.3.2.1.2.2.6. getAccountUserData

public String getAccountUserData(Account account, String key)

6.3.2.1.2.2.7. getGpsEventSource

public GpsEventSource getGpsEventSource()

6.3.2.1.2.2.8. getLayerFactory

public LayerFactory getLayerFactory()

6.3.2.1.2.2.9. getMap

public MapBase getMap()

6.3.2.1.2.2.10. getMapBackground

public Bitmap getMapBackground()

6.3.2.1.2.2.11. getThemeId

protected int getThemeId(boolean isDark)

6.3.2.1.2.2.12. isAccountManagerValid

protected boolean isAccountManagerValid()

6.3.2.1.2.2.13. onCreate

public void onCreate()

6.3.2.1.2.2.14. onFirstRun

protected void onFirstRun()

Executed then application first run. One can create some data here (some layers, etc.).

6.3.2.1.2.2.15. removeAccount

public AccountManagerFuture<Boolean> removeAccount(Account account)

6.3.2.1.2.2.16. setPassword

public void setPassword(String name, String value)

6.3.2.1.2.2.17. setUserData

public void setUserData(String name, String key, String value)