Exemple #1
0
        protected override void OnListItemClick(ListView l, View v, int position, long id)
        {
            Tent tent = null;

            try
            {
                tent = adapter.GetItemAtPosition(position);
            }
            catch (Exception e)
            {
                Log.Error(Constants.LOGTAG, "items from adapter blew up", e);
            }

            ((BeerTentApplication)Application).SelectedTent = tent;

            // startFrom page is not stored in application, for example purposes it's a simple "extra"
            Intent intent = new Intent(Constants.INTENT_TENT_DETAIL);

            StartActivity(intent);
        }