| | |
| | | package com.basic.security.activity; |
| | | |
| | | import android.content.Intent; |
| | | import android.media.MediaPlayer; |
| | | import android.os.SystemClock; |
| | | import android.support.v4.app.FragmentActivity; |
| | | import android.support.v4.app.FragmentManager; |
| | | import android.view.View; |
| | | import android.widget.EditText; |
| | | import android.widget.FrameLayout; |
| | | import android.widget.ImageView; |
| | | import android.widget.MediaController; |
| | |
| | | import com.basic.security.base.BaseFragment; |
| | | import com.basic.security.fragment.HomeFragment; |
| | | import com.basic.security.fragment.SettingFragment; |
| | | import com.basic.security.service.KeepLifeService; |
| | | import com.basic.security.utils.FFmpeg; |
| | | import com.basic.security.utils.KeyboardUtil; |
| | | import com.basic.security.utils.LztekAndroidRoot; |
| | | import com.basic.security.widget.AuthDialog; |
| | | import com.basic.security.widget.MyMediaController; |
| | | import com.bumptech.glide.Glide; |
| | | |
| | |
| | | fragment_home.pullAlarmDataList(); |
| | | fragment_home.playAlarmSound(); |
| | | KeyboardUtil.setupUI(fragment_setting.getView()); |
| | | // KeyboardUtil.setupUI(mainActivityView); |
| | | // ffmpeg(); |
| | | stopService(new Intent(this, KeepLifeService.class)); |
| | | startService(new Intent(this, KeepLifeService.class)); |
| | | } |
| | | |
| | | @Background |
| | |
| | | |
| | | @Click |
| | | public void goto_setting() { |
| | | if (currentFragment == fragment_home) { |
| | | // do_goto_setting(); |
| | | AuthDialog authDialog = new AuthDialog(this); |
| | | authDialog.show(); |
| | | } |
| | | } |
| | | |
| | | public void do_goto_setting() { |
| | | exit_fullscreen(); |
| | | hideOneFragment(fragment_home); |
| | | showOneFragment(fragment_setting); |
| | |
| | | } |
| | | |
| | | public void goto_home() { |
| | | hideOneFragment(fragment_setting); |
| | | showOneFragment(fragment_home); |
| | | hideOneFragment(fragment_setting); |
| | | fragment_home.goto_top(); |
| | | } |
| | | |
| | |
| | | |
| | | @Override |
| | | public void onBackPressed() { |
| | | exit_fullscreen(); |
| | | android.os.Process.killProcess(android.os.Process.myPid()); |
| | | System.exit(0); |
| | | } |
| | | |
| | | public boolean notInFullscreenMode() { |
| | |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | } |