multithreading - Handle tasks when activity is stopped in monodevelop -
i developing android app using xamarin , having issues using background threads. in multitasking demo (http://docs.xamarin.com/samples/multithreading) authors create task suppose complete long running process. while task running , orientation changed following in output window:
05-15 03:12:19.379 e/windowmanager(32764): activity androidmultithreading.screens.mainscreen has leaked window com.android.internal.policy.impl.phonewindow$decorview@423e4aa8 added here 05-15 03:12:19.379 e/windowmanager(32764): android.view.windowleaked: activity androidmultithreading.screens.mainscreen has leaked window com.android.internal.policy.impl.phonewindow$decorview@423e4aa8 added here
i cannot find information on how handle these tasks when activity has been killed or restarted. cancellationtokensource work in situation?
asked same question on xamarin's forums , here answer: http://forums.xamarin.com/discussion/comment/14047#comment_14047
Comments
Post a Comment