fragment에서 AlertDialog를 만들 수 없나요??
AlertDialog.Builder builder = new AlertDialog.Builder(this);
이렇게 했더니
생성자 AlertDialog.Builder(BuyActivity)이(가) 정의되지 않았습니다.
(BuyActivity는 프레그먼트 클래스(?)이름)
라고 나옵니다
(AlertDialog.Builder builder = new AlertDialog.Builder(BuyActivity.this); 이것도 해봤는데 똑같아요..)
일반적으로 extends Activity 된 클래스에서는 저게 가능해요;;;
extends Fragment 된 클래스에서는 저런 에러가 나요 ㅠㅠ
방법이 없을까요?