// injection
if (application.equals("ActivityApplication")) {
ActivityApplication activityApplication = new ActivityApplication();
currentApplication = activityApplication;
} else if (application.equals("PreferencesApplication")) {
PreferencesApplication preferencesApplication = new PreferencesApplication();
currentApplication = preferencesApplication;
} else if (application.equals("ContactsApplication")) {
ContactsApplication contactsApplication = new ContactsApplication();
currentApplication = contactsApplication;
}