I am using a ListView in Xamarin Android to display a list of restaurants, and when one is clicked on I would like to navigate to a new activity. The activity for each is named using this convention: [restaurantName]Activity. I'm trying to use intents:
protected override void OnListItemClick(ListView l, View v, int position, long id)
{
string t = items[position] + "Activity";
var intentPlace = new Intent(this, typeof(???));
StartActivity(intentPlace);
}
String t gives the correct format, but is the wrong type to put inside the typeof(). However, I have no idea what to put in place of the '???', as I wasn't able to use setTitle in order to create the activity name. Would anyone be able to point me in the right direction?