Hi, I have problem with baseadapter class, I made this class public class FeedItemDetailsActivity : BaseAdapter<FeedItem> {}
and I want to call it as new activity in my main activity here is an example of my code ` protected void OnListItemClick(object sender, AdapterView.ItemClickEventArgs e)
{
Intent intent = new Intent (this.ApplicationContext, typeof(FeedItemDetailsActivity)); ApplicationContext.StartActivity(intent); }`
but when I click I got error: android.content.ActivityNotFoundException: Unable to find explicit activity class
I tried inputing as an activity in manifest or activity label but that didn't work! Can someone help? Thanks!
Answers
Adnan, Activity does not extend BaseAdapter, did you read the documentations for Activity and Adapter? Are you looking for a ListActivity? .
Here is a link to Xamarin documentation of ListViews and Adapter
http://developer.xamarin.com/guides/android/user_interface/working_with_listviews_and_adapters/
Hi, thanks for your replay. Maybe I didn't explain very well what I want to achieve so I made example of my project and you can download, launch on emulator and see where I get error and I wrote explanation also. Thanks for your help!