Android

1. Code (1) DocumentWebViewFragment2.java WebView webView = (WebView) rootView.findViewById(R.id.webView2); final ConstraintLayout topBar = (ConstraintLayout) rootView.findViewById(R.id.topBar); final ConstraintLayout BottomBar = (ConstraintLayout) rootView.findViewById(R.id.BottomBar); webView.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent e..
1. Importance 채널 생성에 앞서 Importance에 따른 채널 중요도를 설정할 수 있다. 여기서 중요한 점은 헤드업 알람의 유무 2. 인자 id : 임의의 채널 id name : 알람 이름 importance level : 알람 중요도 3. 순서 Channel과 NotificationManager 초기화 후 마지막에 .createNotificationChannel을 해야한다. 4. 코드 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Notific..
Code //오디오매니저 초기화 AudioManager mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); /* 현재 오디오모드확인 */ mAudioManager.getRingerMode() == AudioManager.RINGER_MODE_SILENT : 사일런트 모드일 경우(값0) mAudioManager.getRingerMode() == AudioManager.RINGER_MODE_VIBRATE : 진동모드일 경우(값1) mAudioManager.getRingerMode() == AudioManager.RINGER_MODE_NORMAL : 벨 모드일 경우(값2) //AudioManager.ACTION_AUDI..
1. Code 1. VibrationFragment.java public class VibrationFragment extends Fragment { private static final String TAG = "VibrationFragment"; private int newVibrationIntensity; private long[] timing = null; static ArrayList mVibrationPatternList; VibrationPatternListAdapter mVibrationPatternListAdapter; RecyclerView mRecyclerView; Slider vibrationIntensitySlider; @Override public View onCreateView(..
🔔벨91
'Android' 카테고리의 글 목록 (8 Page)