Back to project page helsinki-testbed2-android.
The source code is released under:
GNU General Public License
If you think the Android project helsinki-testbed2-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package fi.testbed2; /*from ww w . ja v a 2s.com*/ import com.google.inject.AbstractModule; import fi.testbed2.android.ui.dialog.AlertDialogBuilder; import fi.testbed2.android.ui.dialog.DialogBuilder; import fi.testbed2.service.*; import fi.testbed2.service.impl.*; import roboguice.inject.SharedPreferencesName; /** * Module used by the RoboGuice IoC framework. */ public class MainModule extends AbstractModule { @Override protected void configure() { bind(DialogBuilder.class).to(AlertDialogBuilder.class); bind(MunicipalityService.class).to(InlineMunicipalityService.class); bind(LocationService.class).to(PreferenceBasedLocationService.class); bind(CoordinateService.class).to(MercatorCoordinateService.class); bind(SettingsService.class).to(SharedPreferenceSettingsService.class); bind(BitmapService.class).to(LruCacheBitmapService.class); bind(PageService.class).to(LruCachePageService.class); bind(HttpUrlService.class).to(ApacheHttpUrlService.class); bindConstant().annotatedWith(SharedPreferencesName.class) .to(SharedPreferenceSettingsService.SHARED_PREFERENCE_FILE_NAME); } }