private final long FINISH_INTERVAL_TIME = 2000; private long backPressedTime = 0; 메개변수로 상단에 초기화. @Override public void onBackPressed() { long tempTime = System.currentTimeMillis(); long intervalTime = tempTime - backPressedTime; if (0 = intervalTime) { moveTaskToBack(true); finish(); android.os.Process.killProcess(android.os.Process.myPid()); super.onBackPressed(); } else { backPressedTime = tem..
보내는 곳 Intent intent = new Intent("action_key"); intent.putExtra("key", "value"); LocalBroadcastManager.getInstance(mContext).sendBroadcast(intent); 받는 쪽 1. 필터 등록IntentFilter filter = new IntentFilter(); filter.addAction("test"); LocalBroadcastManager.getInstance(mContext).registerReceiver(mControlRecevier, filter);2. 리시버 등록 private BroadcastReceiver mControlRecevier = new BroadcastReceiver() { @..
package com.example.nmg.pref; import android.content.Context; import android.content.SharedPreferences; public class PreferenceUtil { public static final String PREFERENCE_NAME = "wantName"; private static PreferenceUtil preferencemodule = null; private static Context mContext; private static SharedPreferences prefs; private static SharedPreferences.Editor editor; public static PreferenceUtil ge..
- Total
- Today
- Yesterday
- adb 환경변수
- 구글 맵 경로 그리기
- not found adb
- 구글 맵 선그리기
- insert
- https://hwan-shell.tistory.com/244
- mongo db
- mac android
- spannableText
- 명령어
- not starting .bash_profile
- 클래스형 코드
- MongoDB
- 귀찮아;;
- 자바
- rn
- 차번호 정규식
- react native state
- 함수형 코드
- 안드로이드
- nosql
- text 부분 색 칠하기
- Android
- not working adb
- https://medium.com/@limgyumin/%EC%BD%94%ED%8B%80%EB%A6%B0-%EC%9D%98-apply-with-let-also-run-%EC%9D%80-%EC%96%B8%EC%A0%9C-%EC%82%AC%EC%9A%A9%ED%95%98%EB%8A%94%EA%B0%80-4a517292df29
- ubunut android
- React Native
- 데이터베이스
- 차번호 정규표현식
- ubunut 설치 link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |