protected override void OnCreate(Bundle savedInstanceState) { ListRadio aListRadio = new ListRadio(Intent.GetStringExtra(Category)); base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.DefaultListViewer); StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().PermitAll().Build(); StrictMode.SetThreadPolicy(policy); // Getting Country wise Channel List ListView myListView = FindViewById <ListView>(Resource.Id.DefaultListView); RadioChannelLst = aListRadio.GetCountryWiseRadio(); myListView.Adapter = GetAdapter(); myListView.ItemClick += MyListView_ItemClick; }
// This Function will call when application will loaded protected override void OnCreate(Bundle savedInstanceState) { ListRadio aListRadio = new ListRadio(); base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.Main); StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().PermitAll().Build(); StrictMode.SetThreadPolicy(policy); // Get Country category to load on landing page MenuLst = aListRadio.GetAllCountry(); myListView = FindViewById <ListView>(Resource.Id.DefaultMenuListView); // Fill listview throw Adapter myListView.Adapter = GetAdapter(); // Added Event on Country click myListView.ItemClick += MyListView_ItemClick; }