처음 저장소 생성 후 push 할 때 android studio bitbucket push rejected Push rejected: Push to origin/master was rejected Updates were rejected because the tip of your current branch is behind 발생하면 1. VCS 2. GIT 3. Branches Rebase Current onto Selected 해주면 됨.
Fatal Exception: android.database.StaleDataException: Attempted to access a cursor after it has been closed. cursor.close() RingtoneManager로 얻은 Cursor 은 Close 하지 않아도 알아서 하니, 손대면 에러 발생. 그냥 패스 하면 된다.
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;} 요렇게 하자.
android.view.WindowManager$BadTokenException: Unable to add window — token android.os.BinderProxy@ is not valid; is your activity running? 보통 프로그래스 다이얼로그 띄우려고 하는데 발생 한다. 구글에서는 이런 에러를 이렇게 정의 하고 있다. 이 비정상 종료는 대개 앱에서 이전에 완료된 활동을 컨텍스트로 사용하여 대화상자를 표시하려고 시도하여 발생합니다. 예를 들어 활동이 종료되면 대화상자를 표시하려고 시도하는 AsyncTask를 트리거하지만 사용자가 작업이 완료되기 전에 활동에서 뒤로 이동하면 발생할 수 있습니다. 띄우려는 곳이 액티비티가 아니라면if(!((Activity) context).is..
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..