본문 바로가기

mobile/android54

Android Life Cycle Life Cycle onCreate -> onStart -> onResume onPause -> onStop -> onDestroy onRestart -> onStart 2019. 7. 16.
Android Basic - Alert dialog AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(" 보여줄메시지") //간단하게 ex삭제하시겠습니까? .setCancelable(false) .setPositiveButton("Yes", new DialogInterface.OnClickListener() { public void onClick( DialogInterface dialog, int id) { //YES 버튼 눌렸을때 할 작업 } }) .setNegativeButton("No", new DialogInterface.OnClickListener() { public void onClick( DialogInterface dialog, int id) { d.. 2019. 7. 16.
Android interview 1. 기획 논의가 거의 확정된 상태이며, 1. 스케치 --> 제플린에는 디자인에대한 레이아웃의 크기및 가이드라인을 통해. 레이아웃 디자인이 가능함. 1. 개발 공통 구성 작업 필요. 3.1. 네트웍 & http클라이언트 구성 3.2. UI Frame을 어떤식으로 구성할것인지? ### 개발에 필요한 기능 샘플링 진행중. ### MVP를 이용하여 구조로 코딩하도록 가이드가 되었으나, 작업 공수가 많이들 수 있어서 팀내부에서 작업이 어렵다고 이야기한결과 작업이 용이한쪽으로 구조를 잡는것으로 결정됨. ### 작업 환경 및 라이브러리 - Android Studio ::> 제플린 - 콜라비 ::> 협업툴 (게시판) - 슬랙 ::> 채팅 - GIT - glide(image loader) - 네트워크 gson - 버터.. 2019. 7. 16.
안드로이드 웹뷰 보안 코딩 : Android Webview Secure Coding # 안드로이드 웹뷰 보안 코딩 : Android Webview Secure Coding ### 참고 - https://www.checkmarx.com/2017/11/16/android-webview-secure-coding-practices/ - https://stackoverflow.com/questions/53631536/in-android-javascript-interface-injection-vulnerability?rq=1 : https 사용하면 된다는 내용. ### 일반 텍스트 콘텐츠로드 - SSL, TLS 미적용시 MitM(Man-in-the-Middle:중간자공격)에 취약하게됨. > HTTPS적용 - API 23(Mashmallow)이후에는 "android: useCleartextTarff.. 2019. 7. 16.
Android Job Schedule Periodic Background Service #### 참고 [JobIntentService runs periodically?](https://stackoverflow.com/questions/51668607/jobintentservice-runs-periodically) [Continually Running Background Service](https://stackoverflow.com/questions/51289236/continually-running-background-service/51360718#51360718) #### Comparison to other libraries LibraryMinimum APIRequires Google PlayService API1Custom retry strategies Framework JobSched.. 2019. 7. 16.
안드로이드 스케줄러 : Android Jobscheduler ## 원본 - [Android O에서의 백그라운드 처리를 위한 JobIntentService](https://medium.com/til-kotlin-ko/android-o에서의-백그라운드-처리를-위한-jobintentservice-250af2f7783c) #### 참고 - https://stackoverflow.com/questions/51668607/jobintentservice-runs-periodically - [JobScheduler를 사용하여 프로와 같은 작업 예약](https://medium.com/google-developers/scheduling-jobs-like-a-pro-with-jobscheduler-286ef8510129) - https://github.com/firebase/fir.. 2019. 7. 16.