Back to project page Android-MyStarterApp.
The source code is released under:
Apache License
If you think the Android project Android-MyStarterApp 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 co.kaush.mystarterapp.app.ui.activities; /*from w w w.java2 s .c o m*/ import android.support.v4.app.FragmentActivity; import javax.inject.Inject; import co.kaush.mystarterapp.app.network.ScopedBus; public class BaseActivity extends FragmentActivity { @Inject ScopedBus _scopedBus; @Override protected void onPause() { super.onPause(); if (getBus() != null) { getBus().paused(); } } @Override protected void onResume() { super.onResume(); if (getBus() != null) { getBus().resumed(); } } public ScopedBus getBus() { return _scopedBus; } }