EmbedIO in StaticFileModule in Android

EnricoRossiniEnricoRossini USMember ✭✭✭
edited February 11 in Xamarin.Android

I'm implementing a backend for testers with EmbedIO (Github here). It is working beautifully with iOS. But in Android I can't find a solution.

In iOS I create this dependency from the Xamarin project:

public class WebServer : Interfaces.IWebServer
{
    public IWebModule CreateWebModule()
    {
        return new Unosquare.Labs.EmbedIO.Modules.StaticFilesModule(NSBundle.MainBundle.ResourcePath);
    }
}

In this function in iOS I can use NSBundle.MainBundle.ResourcePath but I can't find an equivalent for Android. Any ideas? Thank you in advance.

Tagged:
Sign In or Register to comment.