리오파파의 Android Source

  • 홈
  • 태그
  • 방명록

vibrate 1

vibratePhone()

vibrate phone with pattern refer to KeepItSilent.apk private static void vibratePhone(Context context) { long[] pattern = {0, 100, 1000, 300, 200, 100, 500, 200, 100}; Vibrator v = (Vibrator) context.getSystemService(VIBRATOR_SERVICE); assert v != null; v.vibrate(VibrationEffect.createWaveform(pattern, -1)); }

android source 2019.07.23
이전
1
다음
더보기
프로필사진

리오파파의 Android Source

내 android app 에서 사용하던 source 보관용 library로 새 app 만들 때 기존 source가져오기 편하게 하려고 정리 중... app full source는 https://github.com/riopapa 에 있음.

  • 분류 전체보기 (70)
    • 일반 (0)
    • android source (64)

Tag

AudioManager, currentTimeMillis, sharedpreference, AudioFocusRequest, getColor, blockedque, roundedCorner, BufferedReader, readline, wheelview, localbroadcaster, Android, delayed exit, shapeableImageView, getExternalStoragePublicDirectory, Java, audioDevices, log, mounted, screenon,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바