Esempio n. 1
0
 @Override
 protected void onResume() {
   fillHomeListView();
   boolean gesturesEnabled =
       PreferenceManager.getDefaultSharedPreferences(this).getBoolean("gestures", true);
   mGestureOverlayView.setEnabled(gesturesEnabled);
   super.onResume();
 }
Esempio n. 2
0
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.main);

    mHomeListView = (ListView) findViewById(R.id.HomeListView);
    mGallery = (Gallery) findViewById(R.id.Gallery);
    mProgressBar = (ProgressBar) findViewById(R.id.ProgressBar);
    mFailureBar = (FailureBar) findViewById(R.id.FailureBar);
    mViewFlipper = (ViewFlipper) findViewById(R.id.ViewFlipper);

    mGestureOverlayView = (GestureOverlayView) findViewById(R.id.gestures);
    mGestureOverlayView.addOnGesturePerformedListener(
        Dian1Application.getInstance().getPlayerGestureHandler());

    new NewsTask().execute((Void) null);
  }
Esempio n. 3
0
 @Override
 protected void onPause() {
   super.onPause();
 }