public void onClick(View v){

 

....

 

 

AlertDialog.Builder builder;
   AlertDialog alertDialog;
   Context mContext = getApplicationContext();

   LayoutInflater inflater=(LayoutInflater)mContext.getSystemService(LAYOUT_INFLATER);
   View layout = inflater.inflate(R.layout.introdu,null);
   
   ImageView image = (ImageView) layout.findViewById(R.id.one);
   image.setImageResource(R.drawable.i1);


   builder = new AlertDialog.Builder(mContext);
   builder.setView(layout);
   alertDialog = builder.create();
   alertDialog.show();

 

}

 

대화상자에 이미지띄우려고 만든 code인데요.

해당 이미지뷰 누르면 unexpected stopped 뜹니다.

 

log에는 그냥 Null Pointer Exception이라고 나오고요...

왜그런건가요? ㅜ

 

혹, 대화상자에 이미지만 띄우는 것은 불가능한 건가요?