본문 바로가기

IT/안드로이드 관련

[Android] App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW intent filter 에러 해결방법 안녕하세요 YTS 입니다. 요즘 Android를 개발하면서 Manifest에 App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW intent filter 이라는 에러를 보실수 있을텐데요!자세한 에러내용은 아래와 같습니다. App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW intent filter. See issue explanation for more details.Inspection info:Adds URLs to get your app into the Goog..
[안드로이드] 안드로이드 Release에서 Log 찍는법 안녕하세요 YTS 입니다. 오늘은 Android App에서 Release를 추출하고도 Log가 찍히는법을 알아보겠습니다! 정말정말 간단합니다! app gradle에 buildTypes { release { debuggable true } } 요렇게 buildTypes안에 release안에 dubuggable true 하나 입력하면 끝입니다! 이상입니다 : )
[안드로이드] 백그라운드 서비스의 선택기준 출처 https://developer.android.com/guide/background/
[안드로이드] 둥근 모서리 레이아웃 child view 안녕하세요 남갯입니다. 오늘은 둥근모서리 안에 child view도 둥근모양을 적용하는 방법에 대해 알려드리려고합니다. 우리는 이런모양을 통해 circle한 모양을 만들었습니다. 예를들어 이 드로어블을 적용해서 레이아웃을 만들었습니다. 이렇게 말이죠! 하지만 여기다가 네모난 뷰를 넣게되면? 이렇게 네모난 child view가 덮어버리게 됩니다. api 21부터는 cliptoOutline 이라는 기능을 제공합니다. 따라서 val linearLayout = myLinearLayout.apply { measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED) clipToOutline= true } 여기서 true로 설정하면 이렇게 바뀌는것을 볼 수있습니다.
[안드로이드] 개행과 색상을 넣는법 안녕하세요 남갯입니다 오늘은 안드로이드 글 특정색상 바꾸는것과 개행에 대해 포스팅 해보려고합니다. font 태그를 통해 색상을 입력한뒤 내부에 쓸 말을 입력하면 되고 개행을 하기위해서는 \n을 통해 개행이 가능합니다. 인터넷에서는 html 코드를 이용하라고 하는데, 이게 가장 편하고 좋은코드같습니다. - 개행과 색상 넣는법 바꿀색상의글쓸말\n 개행된글자
[안드로이드] background floating button 만들기 안녕하세요 남갯입니다 오늘은 background floating button 을 만드는 방법에 대해 포스팅 해보려고 합니다. background floating button 이란 페이스북 메신져와 비슷하게 이처럼 앱을 끄고나서도 floating button이 움직이는 것을 말합니다. step : manifest Alert permission 과 잠시후 만들 액티비티와 Service를 만듭니다. step : FloatingActivity class FloatingActivity : AppCompatActivity() { private val ACTION_MANAGE_OVERLAY_PERMISSION_REQUEST_CODE = 1 val TAG = "Floating" override fun onCreate(..
[안드로이드] ClipData.Item.getUri() 해결하기 안녕하세요 남갯입니다 오늘은 ClipData.Item.getUri() Error 해결을 해보려고합니다. return Uri.fromFile(mediaFile) 를 통해 uri를 가져오는 도중 에러가 발생했습니다. 찾아보니https://developer.android.com/about/versions/nougat/android-7.0-changes.html#accessibility 7.0부터 file의 uri 노출을 금지하는 보안 정책이 있었습니다. 따라서 content://URI를 보내고 이 URI에 엑세스 권한을 부여해서 FileProvider를 통해 사용하는 방법이 있습니다. 먼저 매니페스트를 수정합니다. Manifest.xml android 의 경우 android:name="android.suppo..
[안드로이드] AutoCompleteTextView 자동 검색 기능 만들기 안녕하세요 남갯입니다 오늘은 naverApi를 이용하여 Rxjava를 이용하며 autoCompleteTextView를 통한 자동 완성기능을 만드는 방법에 대해 포스팅 해보려고합니다. naverApi의 영화 검색 api를 이용해서 만들어보려고 합니다. https://developer.android.com/reference/android/widget/AutoCompleteTextView 공식문서 android 에서는 AutoCompleteTextView 라는것이 있습니다. 자동완성기능을 해주는 녀석인데요? 먼저 검색하는 뷰를 만들어줍니다. threshold="2"는 2개이상의 글자가 쳐졌을때 검색 하겠다는 의미입니다. 검색하는 버튼의 레이아웃을 만들어 준 뒤! class SearchActivity : Bas..