There are really too many #ifdefs. Do you see this code becomes generic some point, or maybe it's worth creating a RuntimeResourceDispatcherHostDelegateAndroid class to hold all this?