コード例 #1
0
 public void setScreen(Screen screen) {
   if (screen == null) {
     throw new IllegalArgumentException("Screen must not be null");
   }
   this.screen.pause();
   this.screen.dispose();
   screen.resume();
   screen.update(0);
   this.screen = screen;
 }
コード例 #2
0
 public void onResume() {
   super.onResume();
   wakeLock.acquire();
   screen.resume();
   renderView.resume();
 }