ava.lang.NumberFormatException: For input string: "-1.0" java.lang.NumberFormatException: For input string: "-1.0" String val = "-1"Interger.valueOf(val)--> ERROR int a = 0;try{ a = Interger.valueOf(val)} catch(NumberFormatException e){ double d = Double.parseDouble(val) a = (int)d;} 요렇게 하자. [안드로이드 공부]/UI 2018.09.20
Resources$NotFoundException: Resource ID #0x0 in AlertDialog Resources$NotFoundException: Resource ID #0x0 in AlertDialogstyle 이 빠질 경우 발생. new android.support.v7.app.AlertDialog.Builder(context, R.style.dialogStyle); [안드로이드 공부]/UI 2018.09.14
Error : BinderProxy@ is not valid; is your activity running? android.view.WindowManager$BadTokenException: Unable to add window — token android.os.BinderProxy@ is not valid; is your activity running? 보통 프로그래스 다이얼로그 띄우려고 하는데 발생 한다. 구글에서는 이런 에러를 이렇게 정의 하고 있다. 이 비정상 종료는 대개 앱에서 이전에 완료된 활동을 컨텍스트로 사용하여 대화상자를 표시하려고 시도하여 발생합니다. 예를 들어 활동이 종료되면 대화상자를 표시하려고 시도하는 AsyncTask를 트리거하지만 사용자가 작업이 완료되기 전에 활동에서 뒤로 이동하면 발생할 수 있습니다. 띄우려는 곳이 액티비티가 아니라면if(!((Activity) context).is.. [안드로이드 공부]/UI 2018.09.10
error: resource style/TextAppearance.AppCompat.Notification.Title android studio Gradle 3.1.0 업데이트 후 1. error: resource style/TextAppearance.AppCompat.Notification.Title 발생android:textAppearance="@style/TextAppearance.AppCompat.Notification" --> 로 변경 android:textAppearance="@style/TextAppearance.Compat.Notification2. error: cannot find symbol class NotificationCompat import android.support.v7.app.NotificationCompat; --> 로 변경 import android.support.v4.app.Notif.. [안드로이드 공부]/안드로이드 스튜디오 2018.04.09
안드로이드 UI NumberPicker TextColor, TextSize, Highlight 색깔 바꾸기 1. Style.xml 2. XML NumberPicker 뿐만 아니라, 대부분에 적용되는 기본 룰이다.소스로 하지 말고 요렇게 하는게 정석. [안드로이드 공부]/UI 2018.03.27
cannot find symbol static runOnUiThread #import com.google.android.gms.internal.zzahn.runOnUiThread error: cannot find symbol static runOnUiThread com.google.android.gms:play-services:11.8.0 --> com.google.android.gms:play-services:12.0.0 으로 올리면 발생, 내리면 돌아 옴... [안드로이드 공부]/안드로이드 공부 2018.03.22
bitbucket에 repository 초기화 및 push 1. bitbucket 에 repository 생성--> readme 파일 만들지 말고--> Get started the easy way 화면에서 2. 로컬 소스 폴더에서 git init3. 로컬 소스 폴더에서 git remote add origin https:// [안드로이드 공부]/안드로이드 스튜디오 2018.03.08
androidstudio please select android sdk please select android sdk --> build.gradle에가서 sync now를 해주면 해결 됨. 할게 없으면 공백 만들면 sync now 나옴. [안드로이드 공부]/안드로이드 스튜디오 2018.03.08
Class not found when unmarshalling NoClassDefFoundError Class not found when unmarshalling:Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack availableclass not found when unmarshalling startactivity 요런 에러가 막뜬다... 이럴 경우에multiDexEnabled true compile 'com.android.support:multidex:1.0.1' 등등을 하라고 한다.... 특정기기에서만 발생하는 거라... 참 어려운데.... 저런건 안 먹힌다... 결국 요상한 분석에 들어간다... StartActivity 에서 문제가있고... 인텐트로 데이터를 넘겨서 받을 때 .. [안드로이드 공부]/UI 2018.01.16
app.imi를 삭제 하면 발생하는 에러... 빌드를 하려 하니module not specified 요렇게 에러가 뜬다... 모듈을 선택 할 수도 없다.클린 한번 해주면 아래 에러가 발생한다. please select android sdk 안드로이드 스튜디오에서Tools -> Android -> Sync Project with Gradle Files 한번 돌려 주면 이제 정상적으로 빌드 할 수 있다. [안드로이드 공부]/안드로이드 스튜디오 2017.12.29