public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
if (arg2 == 0)
{
Intent intent = new Intent(MapShow.this, DisplayMap.class);
Bundle bundle = new Bundle();
double longitude = Double.valueOf(114.567421);
double latitude = Double.valueOf(40.491295);
int lat = (int) (latitude * 1E6);
int lng = (int) (longitude * 1E6);
bundle.putInt(ConstConfiguration.BUDDLE_INT_KEY_LAT, lat);
bundle.putInt(ConstConfiguration.BUDDLE_INT_KEY_LON, lng);
intent.putExtras(bundle);
startActivity(intent);
}
if (arg2 == 1)
{
Intent intent = new Intent(MapShow.this, TraceMap.class);
Bundle bundle = new Bundle();
double longitude = Double.valueOf(114.567421);
double latitude = Double.valueOf(40.491295);
int lat = (int) (latitude * 1E6);
int lng = (int) (longitude * 1E6);
bundle.putInt(ConstConfiguration.BUDDLE_INT_KEY_LAT, lat);
bundle.putInt(ConstConfiguration.BUDDLE_INT_KEY_LON, lng);
intent.putExtras(bundle);
startActivity(intent);
}
}
}
}