Beispiel #1
0
 @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()));
 }
Beispiel #2
0
 @Override
 public void onResume() {
   super.onResume();
   shakeWaker.register();
 }
Beispiel #3
0
 @Override
 public void onPause() {
   super.onPause();
   shakeWaker.unregister();
 }