본문 바로가기

2019/01

[Android] Firebase 구글 로그인 시, ApiException 12500 Firebase를 이용한 구글로그인은 참 편한 기능이다.관리하기도 편하고 아주 쉽다. 그래서, 간단하게 샘플 소스만으로 개발을 할 수 있다.샘플 소스는 아래 경로에서 받으면 된다. https://github.com/firebase/quickstart-android 구글 로그인은 구글 가이드가 잘 되어 있다.https://firebase.google.com/docs/auth/android/google-signin?hl=ko 정말 가이드 대로 하면 문제 없이 테스트를 할 수 있다. 하지만!혹시나 샘플 소스에 google-services.json 파일도 설정 하고, 구글 Firebase 콘솔에서도 설정을 다 했는데,아래와 같은 오류를 본적이 있으신 분은.. ApiException 12500 구글 Firebas.. 더보기
[Android Weekly][#344] 효율적인 LiveData와 ViewModel 테스팅 원본 : https://android.jlelse.eu/effective-livedata-and-viewmodel-testing-17f25069fcd4 Architecture Components 와 그것들을 실행할 방법에 관해 써놓은 글이 많이 있고, 테스트 능력을 향상 시켜줄 혜택 중 하나를 가지고 있다. 자 그럼, 실제로 어떻게 향상시키지? 한번 살펴 보자. Architecture Components는 Google I/O 2017에서 소개되어 졌고, 그것들은 Android 개발 세계에서 뚜렷한 향상을 의미 했다. 수 년을 걸쳐 익힌 최고의 연습들은 대부분의 공통된 문제들이 바뀌어졌고, 탄탄한 가이드(opinionated guide)를 나오게 했다. View와 ViewModel은 LiveData를 통하.. 더보기
[Android] Preferencefragment deprecated 설정 화면을 개발할 때, PreferenceFragment를 많이 사용 했습니다. PreferenceActivity에 PreferenceFragment를 설정하는 형태 였죠. class SettingsActivity : PreferenceActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) fragmentManager.beginTransaction() .replace(android.R.id.content, SettingFragment()) .commit() } class SettingFragment : PreferenceFragment() { override fun onCreat.. 더보기