protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(R.Layout.activity_share); GetActionBar().SetDisplayHomeAsUpEnabled(true); if (savedInstanceState != null) { mCurrentListId = savedInstanceState.GetString(StateCurrentListId); } else { Intent intent = GetIntent(); mCurrentListId = intent.GetStringExtra(ShareActivityCurrentListIdExtra); } mCurrentList = GetDatabase().GetDocument(mCurrentListId); Application application = (Application)GetApplication(); Query query = Profile.GetQuery(GetDatabase(), application.GetCurrentUserId()); mAdapter = new ShareActivity.UserAdapter(this, this, query.ToLiveQuery()); ListView listView = (ListView)FindViewById(R.ID.listView); listView.SetAdapter(mAdapter); }