목록Android (948)
투케이2K
[개발 환경 설정] 개발 툴 : AndroidStudio [소스 코드] // ----------------------------------------------------------------------------------------- // TODO [SEARCH FAST] : [goNetworkDataRestrictStateSettingIntent] : 앱 백그라운드 데이터 사용 허용 설정 창 이동 // ----------------------------------------------------------------------------------------- public static void goNetworkDataRestrictStateSettingIntent(Context mContext)..
[개발 환경 설정] 개발 툴 : AndroidStudio [소스 코드] // ----------------------------------------------------------------------------------------- // TODO [SEARCH FAST] : [getNetworkDataRestrictState] : 앱 데이터 절약 모드 활성 상태 확인 // ----------------------------------------------------------------------------------------- public static Boolean getNetworkDataRestrictState(Context mContext){ /** * // -------------..
[개발 환경 설정] 개발 툴 : AndroidStudio [소스 코드] // ----------------------------------------------------------------------------------------- // TODO [SEARCH FAST] : [goDeveloperSettingIntent] : 개발자 모드 설정 화면 이동 // ----------------------------------------------------------------------------------------- public static void goDeveloperSettingIntent(Context mContext){ /** * // -----------------------------..
[개발 환경 설정] 개발 툴 : AndroidStudio [소스 코드] // ----------------------------------------------------------------------------------------- // TODO [SEARCH FAST] : [goSearchActivityIntent] : 설정 검색 화면 액티비티 이동 // ----------------------------------------------------------------------------------------- public static void goSearchActivityIntent(Context mContext){ /** * // --------------------------------..
[개발 환경 설정] 개발 툴 : AndroidStudio [소스 코드] // ----------------------------------------------------------------------------------------- // TODO [SEARCH FAST] : [goAppNotificationSettingIntent] : 앱 알림 설정 창 인텐트 이동 // ----------------------------------------------------------------------------------------- public static void goAppNotificationSettingIntent(Context mContext){ /** * // ----------------..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bt9rT0/btsGrWIBPOM/fZJDvtNfpiiGLpBnmOMKPk/img.png)
[개발 환경 설정] 개발 툴 : AndroidStudio [소스 코드] // ----------------------------------------------------------------------------------------- // TODO [SEARCH FAST] : [RETURN] getInnerStorageSize : 휴대폰 내장 저장 공간 크기 확인 // ----------------------------------------------------------------------------------------- public static String getInnerStorageSize(Context mContext) { /** * // ------------------------..
[개발 환경 설정] 개발 툴 : AndroidStudio [소스 코드] // --------------------------------------------------------------- // [전역 변수 선언 실시] // --------------------------------------------------------------- MediaRecorder recorder; // --------------------------------------------------------------- // [로직 처리 실시] // --------------------------------------------------------------- try { /** * // ----------------..
[개발 환경 설정] 개발 툴 : AndroidStudio [AndroidManifest.xml 파일] [xml 폴더 network_security_config 파일 : 특정 http 접속 도메인 허용 설정] twok.home.co.kr
[개발 환경 설정] 개발 툴 : AndroidStudio [소스 코드] // ----------------------------------------------------------------------------------------- // TODO [SEARCH FAST] : [getZenModeState] : 휴대폰 방해 금지 모드 설정 상태 확인 수행 // ----------------------------------------------------------------------------------------- public static Boolean getZenModeState(Context mContext){ /** * // -----------------------------------..
[개발 환경 설정] 개발 툴 : AndroidStudio [소스 코드] // ----------------------------------------------------------------------------------------- // TODO [SEARCH FAST] : [setMicrophonePermission] : [마이크 권한 부여 팝업창 호출] // ----------------------------------------------------------------------------------------- // AndroidManifest.xml 파일에 권한 선언 필요 : // ----------------------------------------------------------..
[개발 환경 설정] 개발 툴 : AndroidStudio [소스 코드] // --------------------------------------------------------------- // [로직 처리 실시] // --------------------------------------------------------------- try { /** * // ----------------------------------------- * [요약 설명] * // ----------------------------------------- * 1. 사전 사용자로부터 권한 획득 필요 * * >> 안드로이드 13 이상 * AndroidManifest : READ_MEDIA_IMAGES , READ_MEDI..
[개발 환경 설정] 개발 툴 : AndroidStudio [호출 : 소스 코드] // --------------------------------------------------------------- // [로직 처리 실시] // --------------------------------------------------------------- try { // [핸들러 작업 예약] : [클립 보드 저장] new Handler(Looper.getMainLooper()).postDelayed(new Runnable() { @Override public void run() { // [클립 보드 내용 저장] C_App.setClipboard(A_Intro.this, "반갑 습니다 . 투케이 입니다"); }..
[개발 환경 설정] 개발 툴 : AndroidStudio [소스 코드] // ----------------------------------------------------------------------------------------- // TODO [SEARCH FAST] : [RETURN] directoryFileList : 특정 디렉토리에 저장된 파일 리스트 목록 확인 // ----------------------------------------------------------------------------------------- public static ArrayList directoryFileList(Context mContext, String path) { /** * // -----..
[개발 환경 설정] 개발 툴 : AndroidStudio [소스 코드] // ----------------------------------------------------------------------------------------- // TODO [SEARCH FAST] : [Android 12] : [근처 기기 권한 부여 상태 확인] // ----------------------------------------------------------------------------------------- public static boolean getNearDeviceSearchPermissionEnable(Context mContext){ /** * --------------------------..
[개발 환경 설정] 개발 툴 : AndroidStudio [소스 코드] android { // [Groovy 문법 테스트] applicationVariants.all { variant -> if (variant.buildType.isDebuggable()){ // [개발 모드 인 경우] // [try catch 예외 처리 구문 작성] try { def arr = new int[3]; arr[5] = 5; } catch (Exception e){ println("") println("------------------------------------------------") println("[Exception Print]") println("---------------------------------..
[개발 환경 설정] 개발 툴 : AndroidStudio [소스 코드] android { applicationVariants.all { variant -> if (variant.buildType.isDebuggable()){ // [개발 모드 인 경우] // [변수 선언 수행] def list = [] // [add 사용해 list 데이터 추가] list.add("twok"); list.add(29); // [로그 출력력] println("") println("------------------------------------------------") println("[Log Print]") println("------------------------------------------------") ..
[개발 환경 설정] 개발 툴 : AndroidStudio [소스 코드] android { applicationVariants.all { variant -> if (variant.buildType.isDebuggable()){ // [개발 모드 인 경우] // [변수 선언 수행] def map = [ : ] // [put 사용해 map 데이터 추가] map.put("name", "twok"); map.put("age", 30); // [로그 출력력] println("") println("------------------------------------------------") println("[Log Print]") println("-------------------------------------..
[개발 환경 설정] 개발 툴 : AndroidStudio [소스 코드] android { // [Groovy 문법 테스트] applicationVariants.all { variant -> if (variant.buildType.isDebuggable()){ // [개발 모드 인 경우] // [변수 선언 수행] def count = 1; // [while 문 수행] while (count Configure project :app while : 1 while : 2 while : 3 while : 4 while : 5
[개발 환경 설정] 개발 툴 : AndroidStudio [소스 코드] android { // [Groovy 문법 테스트] applicationVariants.all { variant -> if (variant.buildType.isDebuggable()){ // [개발 모드 인 경우] // [for 문 수행] for(int i=1; i Configure project :app for : 1 for : 2 for : 3 for : 4 for : 5
[개발 환경 설정] 개발 툴 : AndroidStudio [소스 코드] android { // [Groovy 문법 테스트] applicationVariants.all { variant -> if (variant.buildType.isDebuggable()){ // [개발 모드 인 경우] // [Date 객체 생성] def date = new Date(); def formattedDate = date.format('yyyy-MM-dd HH:mm:ss') // [로그 출력] println("") println("------------------------------------------------") println("[Log Print]") println("------------------------..