title: How to go to next Activity by pass value to intent from AlertDialog?
body: <p>I wanna go back to <code>Place.class</code> which shows full information of a place.. now I am able to go back to the <code>Place</code> activity but the information only shows <code>title</code> and <code>address</code>.. I think it might happened in <code>onTab</code> method. It has only 2 things that was put to the intent....</p>
  
  <pre><code>intent.putExtra(Constants.COL_TITLE, oi.getTitle());
  intent.putExtra(Constants.COL_ADDRESS, oi.getSnippet());
  </code></pre>
  
  <p>If I wanna put other field i.e. <code>content</code> <code>phone</code> etc. How do I put data from database to this intent?</p>
  
  <pre><code>intent.putExtra(Constants.COL_CON, ..........);
  </code></pre>
  
  <p>Thank you for your help</p>
  
  <p>I have 3 Class here</p>
  
  <p><code>xxx.class</code></p>
  
  <pre><code>public class xxx extends MapActivity {
  
      MapView mapView;
      MapController mapController;
      private static MyDB mDbHelper;
      private Cursor c;
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.aboutcm);
  
          mDbHelper = new MyDB(this);
          mDbHelper.createDatabase();
          mDbHelper.open();
          c = mDbHelper.getAttraction();
  
          mapView = (MapView) findViewById(R.id.mapview);
          mapController = mapView.getController();
          Drawable drawable = this.getResources().getDrawable(R.drawable.map_pin_3);
          List&lt;Overlay&gt; mapOverlays = mapView.getOverlays();
          PlaceItemizedOverlay itemizedoverlay = new PlaceItemizedOverlay(drawable, this);
  
  
          mapController.setZoom(13);
          mapView.setBuiltInZoomControls(true);
  
  
          c.moveToFirst(); 
          do {
  
              String title = c.getString(c
                      .getColumnIndex(Constants.COL_TITLE));
              String address = c.getString(c
                      .getColumnIndex(Constants.COL_ADDRESS));
              String content = c.getString(c
                      .getColumnIndex(Constants.COL_CONTENT));
              int latitude = (int) (c.getDouble(c
                      .getColumnIndex(Constants.COL_LA)) * 1E6);
              int longitude = (int) (c.getDouble(c
                      .getColumnIndex(Constants.COL_LONG)) * 1E6);
  
  
              itemizedoverlay.addOverlay(new OverlayItem(new GeoPoint(latitude, longitude), title,
                      address));
              mapOverlays.add(itemizedoverlay);
  
          } while (c.moveToNext());
          mDbHelper.close();
  
      }
  
      @Override
      protected boolean isRouteDisplayed() {
          // TODO Auto-generated method stub
          return false;
      }
  
  }
  </code></pre>
  
  <hr>
  
  <p><code>PlaceItemizedOverlay.class</code></p>
  
  <pre><code>public class PlaceItemizedOverlay extends ItemizedOverlay&lt;OverlayItem&gt; {
  
      private Context mContext;
      private ArrayList&lt;OverlayItem&gt; mOverlays = new ArrayList&lt;OverlayItem&gt;();
  
      public PlaceItemizedOverlay(Drawable defaultMarker, Context context)
      {
          super(boundCenterBottom(defaultMarker));
          mContext = context;
      }
      public void addOverlay(OverlayItem overlay) {
          mOverlays.add(overlay);
          populate();
      }
  
      @Override
      protected OverlayItem createItem(int i) {
          // TODO Auto-generated method stub
          return mOverlays.get(i);
      }
  
      @Override
      public int size() {
          // TODO Auto-generated method stub
          return mOverlays.size();    }
  
  
      @Override
      protected boolean onTap(int index) {
  
        final OverlayItem oi = mOverlays.get(index);
        AlertDialog.Builder dialog = new AlertDialog.Builder(mContext);
        dialog.setTitle(oi.getTitle());
        dialog.setMessage(oi.getSnippet());
        dialog.setNegativeButton("Back", null);
        dialog.setPositiveButton("See More Detail", new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface dialog, int id) {
                Intent intent = new Intent(mContext, Place.class);
                  intent.putExtra(Constants.COL_TITLE, oi.getTitle());
                  intent.putExtra(Constants.COL_ADDRESS, oi.getSnippet());
                  mContext.startActivity(intent); 
        }});
        dialog.show();
        return true;
  
      }
  
  
  }
  </code></pre>