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

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -