@Override protected void onCreate(Bundle arg0) { super.onCreate(arg0); setContentView(R.layout.activity_user_profile); initView(); initListener(); }
@Override protected void onDestroy() { super.onDestroy(); if (soundPool != null) soundPool.release(); if (ringtone != null && ringtone.isPlaying()) ringtone.stop(); audioManager.setMode(AudioManager.MODE_NORMAL); audioManager.setMicrophoneMute(false); if (callStateListener != null) EMChatManager.getInstance().removeCallStateChangeListener(callStateListener); }
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { switch (requestCode) { case REQUESTCODE_PICK: if (data == null || data.getData() == null) { return; } startPhotoZoom(data.getData()); break; case REQUESTCODE_CUTTING: if (data != null) { setPicToView(data); } break; default: break; } super.onActivityResult(requestCode, resultCode, data); }
@Override protected void onCreate(Bundle arg0) { super.onCreate(arg0); audioManager = (AudioManager) this.getSystemService(Context.AUDIO_SERVICE); }