Category: Android

안드로이드 개발 관련 카테고리입니다.

Android

[RuntimeException]must implement OnFragmentInteractionListener

프레그먼트를 호출하면서 발생한 오류이다.API 28 버전부터 프레그먼트 사용 방식이 바뀐 듯 하다. java.lang.RuntimeException: ddolcat.vibration.MainActivity@25e7a51 must implement OnFragmentInteractionListener at ddolcat.vibration.VibrationFragment.onAttach(VibrationFragment.java:396) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1404) at android.support.v4.app.FragmentTransition.addToFirstInLastOut(FragmentTransition.java:1195) at android.support.v4.app.FragmentTransition.calculateFragments(FragmentTransition.java:1078)...
Android

Caused by: org.gradle.api.GradleException: Lint found fatal errors while assembling a release target.

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:app:lintVitalRelease’. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70) at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62) at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87) at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52) at...
Android

Android (안드로이드) EditText 읽기전용 (readonly) 처리 하는 방법

EditText 위젯 사용시 읽기 전용으로 변경하기 xml 레이아웃에서 처리하는 방법 : 속성값 enabled를 false로 주시면 됩니다.  <EditText android:id="@+id/myinfo_input_address" android:layout_width="match_parent" android:layout_height="@dimen/myinfo_modify_info_input_height" android:layout_marginTop="@dimen/myinfo_modify_address_default_margin_top" android:paddingLeft="@dimen/myinfo_modify_address_input_padding_left" android:inputType="textMultiLine" android:hint="@string/myinfo_input_address" android:lines="3"...
Android

[안드로이드] android.content.res.Resources$NotFoundException 및 Caused by java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed 오류 처리 방법

보통 오류가 발생하면 firebase에서 알림 메일이 오도록 설정해두었다. 이 번에 처음 받아본 메일은 긴급메일 같은 느낌을 받았다. 무엇이 문제일까 궁금하여 메일을 열어보았다.   메일 제목...
Android

[Cursor : 커서] java.lang.IllegalArgumentException: Invalid token LOCALIZED 오류 해결하기

2020-11-20 19:47:30.300 23340-23340/sample.test.musicplayer E/TAG: HI 2020-11-20 19:47:30.311 23340-23340/sample.test.musicplayer E/AndroidRuntime: FATAL EXCEPTION: main Process: sample.test.musicplayer, PID: 23340 java.lang.RuntimeException: Unable to start activity ComponentInfo{sample.test.musicplayer/sample.test.musicplayer.MainActivity}: java.lang.IllegalArgumentException: Invalid token...
error: Content is protected !!