Skip to content

Instantly share code, notes, and snippets.

@JorgeCastilloPrz
Created December 7, 2014 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JorgeCastilloPrz/94c4b3196a075a7bdba1 to your computer and use it in GitHub Desktop.
Save JorgeCastilloPrz/94c4b3196a075a7bdba1 to your computer and use it in GitHub Desktop.
MainActivity injection
/**
* Created by jorge on 3/17/14.
*/
public class MainActivity extends InjectedActivity {
@Inject
GoogleApiClient mGoogleApiClient;
@Inject
LocationController mLocationController;
@Inject
AbstractFontFactory fontFactory;
private ViewPagerAdapter mPagerAdapter;
private ActionBarDrawerToggle mDrawerToggle;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main_activity);
}
{...}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment