@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.details); Injector injector = getInjector(); shakeWaker = injector.getInstance(ShakeWaker.class); detailsWebView = injector.getInstance(DetailsWebView.class); setTitle(detailsWebView.loadDetails((WebView) findViewById(R.id.cache_details), getIntent())); }
@Override public void onResume() { super.onResume(); shakeWaker.register(); }
@Override public void onPause() { super.onPause(); shakeWaker.unregister(); }