BusRouteMapMyAdapter adapter =
new
BusRouteMapMyAdapter(list, getApplicationContext());
adapter.setOnItemClickListener(
new
BusRouteMapMyAdapter.OnItemClickListener() {
@Override
public
void
onItemClick(View v,
int
pos) {
Intent intent =
new
Intent(v.getContext(), CustomDialog.
class
);
intent.putExtra(
"busRoutedId"
, list.get(pos).getBusRouteId());
intent.putExtra(
"arsId"
, list.get(pos).getArsId());
intent.putExtra(
"stationNm"
, list.get(pos).getStationNm());
intent.putExtra(
"beginTm"
, list.get(pos).getBeginTm());
intent.putExtra(
"lastTm"
, list.get(pos).getLastTm());
intent.putExtra(
"station"
, list.get(pos).getStation());
intent.putExtra(
"staOrd"
, list.get(pos).getSeq());
intent.putExtra(
"direction"
, list.get(pos).getDirection());
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivityForResult(intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK),
1
);
}
});