전체 글 (72) 썸네일형 리스트형 [안드로이드] Navigation Component build.gradle implementation "androidx.navigation:navigation-fragment-ktx:2.5.3" implementation "androidx.navigation:navigation-ui-ktx:2.5.3" res -> new -> resource file navigation.xml res -> new -> resource file bottom_nav.xml [안드로이드] MyApplication Toast 메시지, dialog 등 context가 필요한 기능들이 있다. 이때 어디서든 context를 가져와 쓸 수 있고, 앱 실행 시 실행시켜줘야 되는 기능들이 있다면 MyApplication에 넣어 실행과 동시에 초기화 시켜줄 수도 있다. MyApplication Class는 Application 클래스를 상속받는다. class MyApplication : Application() { companion object { lateinit var prefs: PreferenceUtil private lateinit var myApplication: MyApplication fun getInstance() : MyApplication = myApplication } override fun onCreate.. [안드로이드] 백그라운드에서 위치 데이터 지속적으로 얻기 https://stackoverflow.com/questions/28535703/best-way-to-get-user-gps-location-in-background-in-android Best way to get user GPS location in background in Android In my android app i want to get user current location every few minute interval and update in to my center server using web service. Currently i am using Fused Location Provide for get user current stackoverflow.com 해당 코드는 위의 StackOver.. 이전 1 ··· 14 15 16 17 18 19 20 ··· 24 다음