Is this Possible? I have an intent in my main activity
routeListView.setOnItemClickListener(
new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
String route = values[position];
//for loop to increment through each route list item
int i;
for (i=0; i < values.length;i++)
{
int imageId = (int) image.getResourceId(i, -1);
if (route.equals(values[i]))
{
Intent intent = new Intent(view.getContext(), RouteDetails.class);
intent.putExtra("route", routeDetail[i]);
intent.putExtra("imageResourceId", imageId);
startActivity(intent);
}
}
}
}
right now I have it passing the image to RouteDetails.class but I also want to pass the same image to FullScreenImage.class. I want the route details activity to open but not the FullScreenImage activity. And then later be able to open the FullScreenImage.class activity from RouteDetails.class Is there a simple way to accomplish this?