Back to project page ascent.
The source code is released under:
Apache License
If you think the Android project ascent 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 net.jamesbaca.ascent.mymodule.app; //from ww w . j ava 2 s .c om import net.jamesbaca.ascent.Ascent; import javax.inject.Singleton; import dagger.Module; import dagger.Provides; /** * Created by jamesbaca on 10/17/14. */ @Module( injects = { MainActivity.class, }, library = true ) public class DemoApplicationModule { private final DemoApplication mApplication; private final Ascent mAscent = new Ascent(); public DemoApplicationModule(DemoApplication application) { mApplication = application; } @Provides @Singleton Ascent provideLocationManager() { mAscent.setAssetManager(mApplication.getAssets()); return mAscent; } }