01    
02 public class MyPartt extends MapActivity { 
03   
04 @Override 
05 public void onCreate(Bundle savedInstanceState) { 
06 super.onCreate(savedInstanceState); 
07 setContentView(R.layout.main); 
08 MapView mapView = (MapView) findViewById(R.id.mapview); 
09 mapView.setBuiltInZoomControls(true); 
10   
11 List<OVERLAY> mapOverlays = mapView.getOverlays(); 
12 Drawable drawable = this.getResources().getDrawable(R.drawable.androidmarker2); 
13   
14 HelloItemizedOverlay itemizedoverlay = new HelloItemizedOverlay(drawable, mContext); 
15   
16   
17 GeoPoint point2 = new GeoPoint(37297135,126971430); 
18 OverlayItem overlayitem2 = new OverlayItem(point2, "평화각", "맛있는 짜장면집");
19 GeoPoint point3 = new GeoPoint(37297399,126973908);
20 OverlayItem overlayitem3 = new OverlayItem(point3, "믿음분식", "성대세트 8000원");
21   
22  itemizedoverlay.addOverlay(overlayitem2);
23  itemizedoverlay.addOverlay(overlayitem3);
24   
25 mapOverlays.add(itemizedoverlay);
26           
27         MapController mapControl = mapView.getController();
28         mapControl.setCenter(itemizedoverlay.getCenter());
29         mapControl.setZoom(17);
30         //mapControl.zoomToSpan(itemizedoverlay.getLatSpanE6(),itemizedoverlay.getLonSpanE6());
31         }
32   
33 public class HelloItemizedOverlay  extends ItemizedOverlay<OverlayItem> {
34        
35      private ArrayList<OverlayItem> mOverlays = new ArrayList<OverlayItem>();
36      Context mContext; 
37       // Class member 변수로 mContext 설정
38        
39      public HelloItemizedOverlay(Drawable defaultMarker, Context context) { 
40       super(boundCenterBottom(defaultMarker)); 
41       //boundCenterBottom method를 사용하여  이미지의 중간 아래가 포인트에 오도록 함
42       this.mContext = context;
43       }
44      public void addOverlay(OverlayItem overlay) { 
45       mOverlays.add(overlay); 
46       populate();
47       }
48        
49      @Override
50      protected OverlayItem createItem(int i) { 
51       return mOverlays.get(i);
52       }
53      @Override
54      public int size() {  
55       return mOverlays.size();
56       }
57        
58      @Override
59      public boolean onTap(int index) { 
60       OverlayItem item = mOverlays.get(index);
61       AlertDialog.Builder dialog = new AlertDialog.Builder(mContext);  
62       dialog.setTitle(item.getTitle()); 
63       dialog.setMessage(item.getSnippet()); 
64       dialog.show(); 
65      return true;
66      }
67     }
68       
69     @Override
70     protected boolean isRouteDisplayed(){
71      return false;
72     }
73 }


여기서 HelloItemizedOverlay Class에 있는 mContext를 MyPartt Class에HelloItemizedOverlay 생성자를 만들때
넘겨줘야하는데요, 어떻게 넘져주죠???ㅠㅠ 자꼬 에러남 ㅠㅠ 못고치겠음 ㅠㅠ 고수님들 제발 도와주세요 ㅠㅠ