정보의 공유 사회

Java

web.xml 샘플

<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"       xmlns="http://java.sun.com/xml/ns/javaee"       xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"       id="my_api"       version="3.0">        ...
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"...
error: Content is protected !!