public class ImageSelect extends Activity{
 public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.is);

  GridView grid = (GridView)findViewById(R.id.grid);
  ImageAdapter Adapter = new ImageAdapter(this);
  grid.setAdapter(Adapter);
  
  grid.setOnItemClickListener(new OnItemClickListener() {
   public void onItemClick(AdapterView<?> parent, View view, final int position, long id) {

    AlertDialog.Builder bld = new AlertDialog.Builder(ImageSelect.this);
    bld.setTitle("알립니다.");
    bld.setMessage("현재 이미지를 적용하시겠습니까?");
    bld.setIcon(R.drawable.notice);
    //bld.setPositiveButton("적용하기", null);
    bld.setPositiveButton("적용하기",new DialogInterface.OnClickListener(){
     public void onClick(DialogInterface dialog, int whichButton){
      //Intent intent = new Intent(ImageSelect.this, AniExam.class);
                                
           ImageView mImg = new ImageView(getBaseContext());
           mImg.setImageResource(R.id.grid);
           Toast mToast = new Toast(getBaseContext());
           mToast.setDuration(100000000);
           mToast.setView(mImg);
           mToast.show();
           finish();
          }

       private void finish() {
        // TODO Auto-generated method stub
       }   
         });
    
    bld.setNegativeButton("취소", null);
    bld.show();
   }

  });
 }
}

class ImageAdapter extends BaseAdapter {
 private Context mContext;

 int[] picture = { R.drawable.back1, R.drawable.back2, R.drawable.back3,
   R.drawable.back4, R.drawable.back5, R.drawable.back6, R.drawable.back7,
   R.drawable.back8};

 public ImageAdapter(Context c) {
  mContext = c;
 }

 public int getCount() {
  return 8;
 }

 public Object getItem(int position) {
  return picture[position%8];
 }

 public long getItemId(int position) {
  return position;
 }

 public View getView(final int position, View convertView, ViewGroup parent) {
  ImageView imageView;
  if (convertView == null) {
   imageView = new ImageView(mContext);
   imageView.setLayoutParams(new GridView.LayoutParams(70, 70));
   imageView.setAdjustViewBounds(false);
   imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
   imageView.setPadding(4, 4, 4, 4);
     } else {
   imageView = (ImageView) convertView;
  }

  imageView.setImageResource(picture[position%8]);
  
  return imageView;
 }
}

---------------------------------------------------------------------------------------
갤러리에서 그림을 선택하면 대화상자가 뜨구요

대화상자에서 적용을 누르면 AniExam.java(다른 뷰)에 배경화면으로 깔리게 하고싶은데

어떻게 하는지 모르겠어요,,,,,,,,,,,,,,,,ㅜㅜ

정말 와왕왕초보입니다 쉽게 설명부탁드릴께요..