c# - Use RunOnUIThread in ListFragment Activity Xamarin android -
i want perform background opertaion in listfragment activity, not working, writing code uithread part not running causes error an unhandled exception occurred , app crashes
activity.runonuithread(() => { listadaptersession = new sessionadapter(activity, sessiondata); listsession.adapter = listadaptersession; listadaptersession.notifydatasetchanged(); fromupdatesession = false; });
my activity inherited listfragment
public class sessionactivity : global::android.support.v4.app.listfragment
Comments
Post a Comment