JAVA/android_studio 2025. 4. 1. 14:48

https://www.youtube.com/watch?v=H7E7tPOwa_E

 

 

 

 

https://makezine.com/projects/usb-otg-cable/

 

Make Your Own On-The-Go (OTG) USB Cable | Make:

Learn how to make your own on-the-go (OTG) USB cable for pretty cheep or free if you have the supplies sitting around your house.

makezine.com

 

 

 

 

https://www.instructables.com/How-to-make-USB-OTG-cable/

 

How to Make USB OTG Cable

How to Make USB OTG Cable: Did you forgot to put an important file on your USB key or you want to type faster on your smart phone? If your one of those watch this tutorial where I build nice and compact USB OTG 'On-The-Go' cable from an old Usb connectors.

www.instructables.com

 

posted by cskimair
:
JAVA/android_studio 2025. 3. 21. 11:34

 

https://black-jin0427.tistory.com/283

 

[Android, DialogFragment] 커스텀 다이얼로그 프래그먼트 만들기

안녕하세요. 블랙진입니다. 우리는 안드로이드에서 기본으로 제공해 주는 다양한 알림 요소를 사용하고 있습니다. 다이얼로그 토스트 스낵바 이번 포스팅은 각 알림 요소들을 사용자 지정 레이

black-jin0427.tistory.com

 

 

posted by cskimair
:
JAVA/android_studio 2024. 10. 31. 15:55

 

-

자바 ArrayList 사용 방법

 

ArrayList<Integer> integers1 = new ArrayList<Integer>(); // 타입 지정
ArrayList<Integer> integers2 = new ArrayList<>(); // 타입 생략 가능
ArrayList<Integer> integers3 = new ArrayList<>(10); // 초기 용량(Capacity) 설정
ArrayList<Integer> integers4 = new ArrayList<>(integers1); // 다른 Collection값으로 초기화
ArrayList<Integer> integers5 = new ArrayList<>(Arrays.asList(1, 2, 3, 4, 5)); // Arrays.asList()

ArrayList<String> colors = new ArrayList<>(Arrays.asList("Black", "White", "Green", "Red"));

 

 

https://psychoria.tistory.com/765

 

[Java] 자바 ArrayList 사용 방법

ArrayList는 자바에서 기본적으로 많이 사용되는 클래스입니다. ArrayList는 자바의 List 인터페이스를 상속받은 여러 클래스 중 하나입니다. 일반 배열과 동일하게 연속된 메모리 공간을 사용하며 인

psychoria.tistory.com

 

-

 

posted by cskimair
:
JAVA/android_studio 2024. 10. 29. 08:52

 

C:\>type scrcpy-serial_no.bat
rem C:\prj\2022-StandardPhaseTracer\utils\scrcpy-win64-v1.24>scrcpy.exe
rem scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
rem ERROR: Multiple (2) ADB devices:
rem ERROR:     -->   (usb)      11160b600b7d0202            device  SM_G920S
rem ERROR:     -->   (usb)  To0be0filled0by0O0E0            device  X16_Power_D6F7_
rem ERROR: Select a device via -s (--serial), -d (--select-usb) or -e (--select-tcpip)
rem ERROR: Server connection failed
rem
rem

scrcpy -s 11160b600b7d0202

C:\>

'JAVA > android_studio' 카테고리의 다른 글

[Android, DialogFragment] 다이얼로그 프래그먼트 만들기  (0) 2025.03.21
자바 ArrayList 사용 방법  (0) 2024.10.31
Thread.sleep not crash app  (1) 2024.10.24
자바 코드 실행시간 구하기  (2) 2024.10.23
Timeout Dialog  (1) 2024.10.23
posted by cskimair
:
JAVA/android_studio 2024. 10. 24. 13:50

- Java Thread.sleep

https://stackoverflow.com/questions/43060701/thread-sleep-not-crashes-my-app

 

Thread.sleep not crashes my app

By calling Thread.sleep on the UI thread i expect my android app to crash, but it does not. I tried to explicitly run this on UI thread, by using runOnUiThread but the result was the same, the app

stackoverflow.com

 

posted by cskimair
:
JAVA/android_studio 2024. 10. 23. 12:01

 

-

long startTime = System.currentTimeMillis();

// 실행 시간을 측정하고자 하는 코드

long endTime = System.currentTimeMillis();
long elapsedTime = endTime - startTime;
System.out.println("Elapsed time: " + elapsedTime + "ms");
출처: https://alisyabob.tistory.com/396 [it 공부 끄적이기:티스토리]

 

https://alisyabob.tistory.com/396

 

[Java] 자바 코드 실행 시간 구하는 방법

[Java] 자바 코드 실행 시간 구하는 방법 알아보기 1. System.currentTimeMillis()와 System.nanoTime() 메서드를 사용하는 방법 System.currentTimeMillis() 메서드는 현재 시간을 밀리초 단위로 반환 long startTime = System

alisyabob.tistory.com

 

Instant start = Instant.now();

// 실행 시간을 측정하고자 하는 코드

Instant end = Instant.now();
long elapsedTime = Duration.between(start, end).toMillis();
System.out.println("Elapsed time: " + elapsedTime + "ms");
출처: https://alisyabob.tistory.com/396 [it 공부 끄적이기:티스토리]
posted by cskimair
: