일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- albumbook
- 애플
- git
- SwiftUI
- Android
- otpkey
- SWIFT
- OTP
- SSH
- apple
- 앱리소스
- 앨범북
- kmip
- 2FA
- MSYS2
- MYSQL
- openssl
- MFA
- 앱스토어
- FIDO2
- css
- Nodejs
- OSX
- WebAuthn
- 인증
- 안드로이드
- fido
- Xcode
- appres
- SSL
- Today
- Total
목록소스 팁/Java, Android, Kotlin (59)
인디노트
안드로이드 3.0 부터 하드웨어 버튼이 아닌 소프트웨어 네비게이션 버튼 사용도 가능하도록 변경되었습니다. 특히 넥서스 시리즈에 적용된 것이죠. 이런 소프트웨어 버튼은 View를 상속 받은 레이아웃 또는 위젯을 통해 컨트롤 할 수 있습니다. Low Profile 또는 네비게이션 버튼을 숨길 수 있습니다. 적용 방법도 간단하며 이미 구글에서 제작한 앱들 중 동영상을 재생하는 프로그램은 모두 적용되어 있으며, 이 소프트웨어 버튼을 숨길 수 있는 메소드를 제공합니다. View의 API를 확인하면 setSystemUiVisibility을 제공하고 있습니다. View를 상속받는 모든 Method는 사용이 가능합니다. 제가 작성한 예제는 LinearLayout을 사용하여 네비게이션 버튼을 숨기거나 약간 어둡게 처리하..
In my Android project in Github, linked below, you can find working code that allows to write on extSdCard in Android 5. It assumes that the user gives access to the whole SD Card and then lets you write everywhere on this card. (If you want to have access only to single files, things get easier.)Main Code snippletsTriggering the Storage Access Framework:@TargetApi(Build.VERSION_CODES.LOLLIPOP) ..
Lots of good questions, let's dig in. :)How do you use it?Here's a great tutorial for interacting with the Storage Access Framework in KitKat:https://developer.android.com/guide/topics/providers/document-provider.html#clientInteracting with the new APIs in Lollipop is very similar. To prompt the user to pick a directory tree, you can launch an intent like this: Intent intent = new Intent(Intent...
Google Library 중에 하나인 Gson Java JSON 으로 사용되는 라이브러리이며 많이들 쓰이는듯 하다. 사이트: https://code.google.com/p/google-gson/ API: http://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/index.html User Guide: https://sites.google.com/site/gson/gson-user-guide/ Company.java ?1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465import jav..
[Android] Activity 생성시에 사용되는 Intent Flag 정리 아이 6 years ago 안드로이드 엑티비티에 대해 이해하기 위해 필요한 지식은 3가지 정도가 아닐까 생각합니다. 바로 Activity Lifecycle, Task, Intent 입니다. 모두 어느정도 이해를 하시고 계신 상태라고 생각하고 글을 적어보겠습니다. 인텐트를 이용하여 새로운 엑티비티를 띄우기 위해서는 일반적으로 다음과 같은 방법으로 새로운 엑티비티를 실행하게 됩니다. Intent intent = new Intent(this, MyActivity.class); startActivity(intent); 위의 코드는 다음과 같은 순서로 실행이 됩니다. 1. 새로운 MyActivity 인스턴스가 생성됩니다. 2. 이 인스..
Activity 생성시 Intent Flag 사용방법은 다들 알고 있겠지만 다음과 같음 intent.addFlag(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); 1. FLAG_ACTIVITY_BROUGHT_TO_FRONT 시스템에서 설정하는 값이며, 같은 task에 Activity가 존재할 경우에 Activity의 실행모드가 singleTask이면 자동으로 설정됨 2. FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET 테스크가 리셋될 때 플래그가 사용된 액티비티부터 위의 액티비티가 모두 삭제됩니다. 예) ABCD -> B call - > AB FLAG_ACTIVITY_RESET_TASK_IF_NEEDED플래그의 설정에 의해 리셋이 이루어지게 됩니다. 시스템에 의해 ..
import android.graphics.Bitmap; /** * BitmapUtil Class * * @Author : mcsong@gmail.com * @Date : Mar 11, 2012 9:59:18 AM * @Version : 1.0.0 */ public class BitmapUtil { /** * Bitmap을 ratio에 맞춰서 max값 만큼 resize한다. * * @param src 원본 * @param max 원하는 크기의 값 * @return */ public static Bitmap resizeBitmap(Bitmap src, int max) { if(src == null) return null; int width = src.getWidth(); int height = src.ge..
안드로이드 앱을 설치하면 기본적으로 HOME 화면에 앱아이콘을 생성하지 않는다.따라서, 앱을 개발할 때 해당하는 코드를 넣어야 한다. 우선 manifest 파일에 다음의 권한을 명시한다. 앱을 실행할 때마다 아이콘을 생성하면 사용자가 짜증을 낼 터이니 다음과 같이 체크하도록 한다.public SharedPreferences shortcutSharedPref; public boolean isInstalled;shortcutSharedPref = getSharedPreferences("what", MODE_PRIVATE); isInstalled = shortcutSharedPref.getBoolean("isInstalled", false); Log.e(LOG_TAG + "installed: " + isIns..
Android ViewPager.OnPageChangeListener 의 이벤트 전달 순서이번에 작업하는 UI는 ViewPager의 0번 탭에서 1번 탭으로 이동할 때 특정한 애니메이션을 실행한다. 일반적인 탭이라면 별 복잡한 처리가 필요하지 않겠지만, ViewPager의 특성 상 0번 탭에서 1번 탭 이동이 swipe일 수도 있고, 탭을 꼭 집어 이동하는 케이스도 있다.실제 케이스는 더 복잡하지만 일단 서두는 이 정도로 해 두고, ViewPager의 상태가 어떻게 바뀌어가는지 알아야 하기에 ViewPager.OnPageChangeListner 를 이용했다.이 클래스는 onPageScrollStateChanged(int state), onPageScrolled(int position, float posi..