Back to project page trifork-ibeacon-demo.
The source code is released under:
Apache License
If you think the Android project trifork-ibeacon-demo 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.trifork.ibeacon; //www .ja v a 2 s .c o m import android.os.Bundle; import android.support.v4.app.FragmentActivity; import com.squareup.otto.Bus; import javax.inject.Inject; public class BaseActivity extends FragmentActivity { protected @Inject Bus bus; public BaseActivity() { super(); BaseApplication.inject(this); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); bus.register(this); } @Override protected void onDestroy() { super.onDestroy(); bus.unregister(this); } }