일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- 앱리소스
- apple
- Xcode
- FIDO2
- Nodejs
- OSX
- MSYS2
- openssl
- SwiftUI
- MFA
- css
- WebAuthn
- 앨범북
- SSL
- appres
- Android
- git
- albumbook
- 2FA
- 인증
- 앱스토어
- 안드로이드
- SSH
- kmip
- SWIFT
- MYSQL
- OTP
- fido
- 애플
- otpkey
- Today
- Total
목록소스 팁/Java, Android, Kotlin (59)
인디노트
프로젝트를 진행하는데 있어 안드로이드 관련해서 카드를 위 아래로 회전 시키는 코드가 필요하다.인터넷에 있는 샘플 코드 중에서 그래도 제일 마음에 드는 오픈소스가 있어서 기록을 남긴다.https://github.com/Azoft/CarouselLayoutManager
앨범북 1.0 버전은 상단에 상태바 (Status Bar) 가 없이 전체 화면 (Full Screen) 을 사용했다.다음 코드와 같이 천체 화면을 사용하도록 하였다.@Overridepublic void onCreate(Bundle savedInstanceState){super.onCreate(savedInstanceState);requestWindowFeature(Window.FEATURE_NO_TITLE);getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_POR..
Android and the transparent status bar 이글의 출처는 http://blog.raffaeu.com/archive/2015/04/11/android-and-the-transparent-status-bar.aspx With the introduction of Google Material Design we also got a new status bar design and we can choose for three different layouts:Leave the status bar as is (usually black background and white foreground)Change the color of the status bar using a different toneMak..
버전1.1안드로이드 1.0 애플파이1.2안드로이드 1.1 바나나 브레드1.3안드로이드 1.5 컵케이크1.4안드로이드 1.6 도넛1.5안드로이드 2.0 / 2.1 에클레어1.6안드로이드 2.2 프로요1.7안드로이드 2.3 진저브레드1.8안드로이드 3.0 ~ 3.2 허니콤1.8.13.0 허니콤1.8.23.1 허니콤1.8.33.2 허니콤1.9안드로이드 4.0 아이스크림 샌드위치1.104.1 ~ 4.3 젤리빈1.10.14.1 젤리빈1.10.24.2 젤리빈1.10.34.3 젤리빈1.11안드로이드 4.4 킷캣
안드로이드 앱을 개발하다보면 메시지(Notification)를 전송 받거나 다른 앱에서 호출 되었을때 Activity 가 폰 상에 중복으로 실행이 된다.이러한 상황은 간혹 프로그램적으로 오류를 발생할 소지가 있다. 예를 들어 전역 static 변수 들의 값에 의해서 동작되는 경우...manifest 파일의 Activity 에 다음과 같이 설정하면 해결 된다. android:launchMode="singleTask"
안드로이드에서 띄울수 있는 여러가지 다이얼로그 들을 잘 설명한 페이지가 있어서 스크랩을 해놓는다.출처 : http://mainia.tistory.com/555 (1) 여러 개의 멀티선택 옵션으로 표현해 주기 다중선택을 위한 다이얼로그 창을 띄운다. 리스트에는 제목과 radio button이 있다. AlertDialog.Builder 클래스로 구현하며 리스트중 특정행을 클릭했을 때이벤트는 setSingleChoiceItems 에 등록한다. Ok 버튼클릭 이벤트는setPositiveButton , Cancel 버튼클릭 이벤트는 setNegativeButton 에 등록하고기능을 구현하면 된다. 12345678910111213141516171819202122private void DialogSelectOptio..
Create Horizontal ListView using GridViewA ListView is a list of views arranged vertically. You can scroll the items only in vertical direction.A GridView is a two dimensional array of views which can be scrolled only in horizontal direction and number of rows is fixed. Apart from these two GroupView, no other API exists till now in Android which you can directly use to create a Horizontal scrol..
안드로이드 스튜디오의 코드 스타일을 바꾸는 방법 기본으로 제공되는 스타일은 다음과 같다. 뭐... 요즘은 다 이런 스타일이 기본이 되버렸다. 그런데 나는 평생을 다음과 같은 스타일로 코드를 짜 왔다. 이걸 하루아침에 바꿀수도 없고... 이렇게 스타일을 바꾸는 방법을 알아보자. Andro Studio 의 Preferences 메뉴를 이용하여 나오는 창에서. Editor => Code Style => Java 를 선택하여 (여기서 Java 이외의 C/C++, HTML 등등 파일 형식에 따라서 설정 가능) 다음의 항목들을 바꾸면 된다. (디폴트 상태) (수정된 상태) 이렇게 End of line => Next line 으로 바꾸면 된다.
안드로이드 앱에서 스토리지에 파일을 쓰고 읽기 위해서는 메니페스트 (AndroidManifest.xml) 파일에 다음과 같은 권한을 기록해줘야 한다. # 외장 메모리 (SD CARD)의 절대 경로 알아내기 String sdcardPath = null;String sdcardStat = Environment.getExternalStorageState();if(sdcardStat.equals(Environment.MEDIA_MOUNTED)){sdcardPath = Environment.getExternalStorageDirectory().getAbsolutePath(); } 여기에서 생각해야 할 내용이 있다. 만약 안드로이드 기기에 외장 메모리가 한개 이상인 경우에는 어떠할까...Android 에서 제공되는..