@Override protected void onDestroy() { mPlaybackManager.dispose(); mPlaybackHandler = null; super.onDestroy(); }
@Override protected void onPause() { super.onPause(); mPlaybackManager.pause(); mPlaybackManager.hideMediaController(); }
@Override protected void onDestroy() { if (mGetFindPassWordHandler != null) { mGetFindPassWordHandler.cancle(); mGetFindPassWordHandler = null; } super.onDestroy(); }
@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)); // } }
@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); }
@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); }
@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(); }
protected void onPause() { has_channel_id = true; super.onPause(); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tofind_password_email); ButterKnife.bind(this); }