ActivityTask: A Helper for Async/Await on Android RRS feed

All replies

  • User348154 posted

    Very nice! This is one of the pain points I have hit with my first Xamarin app. I'm currently attempting to change my UI to use Xamarin.Forms instead of Android and this was one of the motivations.

    Is this relevant for Xamarin.Forms? I'm not experienced with it enough yet to figure it out

    Tuesday, September 26, 2017 12:01 PM
  • User348154 posted

    I should add that my app is only for Android and is likely to stay that way. I'm mainly switching to Xamarin.Forms because it feels much nicer! (coming from WPF anyway)

    Tuesday, September 26, 2017 12:02 PM
  • User13849 posted

    Xamarin.Forms has the same issue with Illegal state exception and async calls, I was hoping that there was an example for using this in Forms.

    Tuesday, September 26, 2017 2:35 PM
  • User348154 posted

    @JeremieLaval Hi Jeremie, I'm trying to figure out how to use this to implement StartActivityForResult without needing all the recoding in the ActivityController. Do you think it's possible? The main issue seems to be that ActivityTask is a replacement for Task and not Task< T >, but I may be misunderstanding the subtleties. The code looks very clever.

    Sunday, October 22, 2017 8:32 PM
  • User348154 posted

    I've ended up resorting to the Fragment trick used from Adam Kemps blog instead (can't post links yet). I hope that it deals with the funny cases that you are dealing with too. It would be nice to have a more standard approach that we could use with xamarin.

    Monday, October 23, 2017 9:40 AM