안드로이드 개발 질문/답변
(글 수 45,052)
안녕하세요,
AAA라는 activity에 OptionsMenu가 있고, AAA 내에서 thread BBB를 생성/실행했습니다.
이 상태에서 BBB thread 내에서 AAA.openOptionsMenu(); 를 호출하도록 하면 컴파일 에러가 납니다.
"Cannot make a static reference to the non-static method openOptionsMenu() from the type AAA"
OpenOptionsMenu() 함수 정의에 static을 추가하면 다음과 같이 에러가 뜨고요..
"This static method cannot hide the instance method from Activity"
Thread 내에서 OpenOptionsMenu()와 같이 옵션메뉴를 보이게 하는 방법 좀 알려주세요...
감사합니다.