Back to project page droidBBpush.
The source code is released under:
This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a co...
If you think the Android project droidBBpush 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 com.arg3.examples.droidbb; /*from ww w.j ava 2s.c om*/ import android.content.Context; import com.arg3.examples.droidbb.annotations.ForApplication; import com.arg3.examples.droidbb.gcm.GCMIntentService; import javax.inject.Singleton; import dagger.Module; import dagger.Provides; /** * Created by ryan on 2014-09-25. */ @Module(library = true, injects = {MainActivity.class, GCMIntentService.class}) public class MainModule { MainApplication app; public MainModule(MainApplication app) { this.app = app; } @Provides @Singleton @ForApplication Context provideApplicationContext() { return app; } }