コード例 #1
0
  @Override
  protected void onDestroy() {
    mPlaybackManager.dispose();
    mPlaybackHandler = null;

    super.onDestroy();
  }
コード例 #2
0
  @Override
  protected void onPause() {
    super.onPause();

    mPlaybackManager.pause();
    mPlaybackManager.hideMediaController();
  }
コード例 #3
0
 @Override
 protected void onDestroy() {
   if (mGetFindPassWordHandler != null) {
     mGetFindPassWordHandler.cancle();
     mGetFindPassWordHandler = null;
   }
   super.onDestroy();
 }
コード例 #4
0
 @Override
 protected void onResume() {
   // initViews();
   super.onResume();
   // if (!TipsUtil.isTipShown(TipsUtil.TIP_DETAIL_MORE)
   // && PreferencesManager.getLanguageInfo(this).equals(
   // LanguageUtil.LANGUAGE_CH)) {
   // startActivity(TipsActivity.getTipIntent(this,
   // TipsUtil.TIP_DETAIL_MORE));
   // }
 }
コード例 #5
0
 @Override
 public void onActivityResult(int requestCode, int resultCode, Intent data) {
   // TODO Auto-generated method stub
   switch (requestCode) {
     case GameUtil.REQUEST_CODE_INSTALL:
       {
         mContent.onActivityResult(requestCode, resultCode, data);
       }
       break;
   }
   super.onActivityResult(requestCode, resultCode, data);
 }
コード例 #6
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_video_preview);
    initActionBar();
    Intent i = getIntent();
    if ((i != null) && (i.getExtras() != null)) {
      mFileName = i.getExtras().getString(FileNameArg);
    }
    Log.e("", "size--------------------------------" + new File(mFileName).length());
    mVideoView = (AdaptiveSurfaceView) findViewById(R.id.video_preview_view);

    mPlaybackManager = new VideoPlaybackManager(this, mVideoView, mPlaybackHandler);
    mPlaybackManager.setupPlayback(mFileName);
  }
コード例 #7
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_news_page);
    // boolean isPush = getIntent().getBooleanExtra("isPush", false);
    // if (isPush) {
    // App.getPreferenceManager().messageNewCountMinus();
    // }
    // 添加fragment
    FragmentTransaction t = getSupportFragmentManager().beginTransaction();
    Bundle bundle = getIntent().getExtras();
    if (bundle == null) {
      this.finish();
      return;
    }

    mContent = new GameDetailFragment();
    mContent.setArguments(bundle);
    t.replace(R.id.fg_content, mContent);
    t.commit();
  }
コード例 #8
0
 protected void onPause() {
   has_channel_id = true;
   super.onPause();
 }
コード例 #9
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_tofind_password_email);
   ButterKnife.bind(this);
 }