본문 바로가기

반응형
SMALL

AOS - Java

반응형
LIST
(11)

안드로이드 시큐어코딩 secure coding 참고 문서 참고 url https://aroundck.tistory.com/5121 [android] Secure Coding Guide [android] Secure Coding Guide - Android Secure Coding Guide 라는 간략한 세미나를 듣고 왔다. 새로운 내용은 없지만, 그냥 Remind 하는 차원에서 정리해본다. 최소 권한 : 불필요한 퍼미션 사용하지 말자. 안.. aroundck.tistory.com
안드로이드 9에서 이미지 라이브러리 glide 사진 안나오는 경우 안드로이드 9 에서만 glide 라이브러리 사용 시 이미지가 안나오는 경우 ↓↓↓↓↓↓ AndroidManifest.xml 파일의 ...
[안드로이드/Android] ClassNotFoundException: Didn't find class "android.support.v4.content.FileProvider" 에러 구문 : ClassNotFoundException: Didn't find class "android.support.v4.content.FileProvider" ↓↓↓↓↓↓↓ build.gradle 파일의 multiDex 등록에도 오류가 사라지지 않을 시gradle 파일에 등록된 gms 라이브러리의 버전을 최신으로 바꾸니 해결됨
[안드로이드/Android] 애드몹 보상형 광고 달기 애드몹에 리워드 광고 등록 후 * 애드몹을 이용하기 위해선 SDK Manager 에 Google Repository가 설치되어 있어야 합니다. Tools - Android - SDK Manager - SDK Tools - Google Repository 1. project 레벨 gradle 수정allprojects { repositories { jcenter() maven { url "https://maven.google.com" } }} 2. app 레벨 gradle sdk 추가compile 'com.google.android.gms:play-services-ads:10.0.1' 3. 매니페스트 수정[권한 추가] [메타데이터 추가] -> 애드몹에 등록된 앱 ID [구글 애드몹 액티비티 추가] 4. st..
[안드로이드/Android] 애드몹 배너 광고 달기 애드몹에 배너 광고 등록 후 * 애드몹을 이용하기 위해선 SDK Manager 에 Google Repository가 설치되어 있어야 합니다. Tools - Android - SDK Manager - SDK Tools - Google Repository 1. project 레벨 gradle 수정allprojects { repositories { jcenter() maven { url "https://maven.google.com" } } } 2. app 레벨 gradle sdk 추가compile 'com.google.android.gms:play-services-ads:10.0.1' 3. 매니페스트 수정[권한 추가] [메타데이터 추가] -> 애드몹에 등록된 앱 ID [구글 애드몹 액티비티 추가] 4. st..
[안드로이드/Android] C언어 CRC32 소스 Java로 변환 / Convert C language CRC32 code to Java c언어로 된 CRC32값 추출 소스를 Java로 변경 [ c-code ]#define CRC32_POLYNOMIAL0x04c11db7L static unsigned long crc_table[256]; static void gen_crc32_table(){register int i, j;register unsigned long crc_accum; for (i = 0; i < 256; i++){crc_accum = ((unsigned long)i 24) & 0xFF)) & 0xff)] ^ (crc
[안드로이드/Android] FileUriExposedException :  file:///storage/~~ exposed beyond app through ClipData.Item.getUri() 안드로이드 7.0 부터의 api 정책 변경-앱사이의 공유가 더 엄격해져서 file:// URI 가 직접 노출되지 않도록 content:// URI를 보내고 이에 대해서 임시 액세스 권한을 부여하는 방식으로 변경(참고)https://developer.android.com/about/versions/nougat/android-7.0-changes.html#accessibility 에러 구문android.os.FileUriExposedException : file:///storage/~~.jpg exposed beyond app through ClipData.Item.getUri() ↓↓↓↓↓↓↓ AndroidManifest.xml 수정 ... ... Res/xml/filepaths.xml 생성 코드 대체Ur..
[안드로이드/Android] ExampleInstrumentedTest.java Error :: exampleinstrumentedtest InstrumentationRegistry can not symbol ExampleInstrumentedTest.java 파일의 InstrumentationRegistry can not symbol 에러 ↓↓↓↓↓↓↓↓↓ build.gradle에 추가 dependencies { … androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) … }