Unable to launch app on Android Samsung Tablet

I am trying to automate tests for a Samsung Tab A7. Using the Appium Inspector supplying the capabilities it launches the app however when I try this via C# I get error

POST /session HTTP/1.1
Accept: application/json, image/png
Connection: Keep-Alive
Content-Length: 292
Content-Type: application/json;charset=utf-8
Host: 127.0.0.1:4723
User-Agent: selenium/3.141.0 (.net windows)

{“desiredCapabilities”:{“udid”:“R9WR403P7KJ”,“platformVersion”:“11.0”,“deviceName”:“SM-T500”,“platformName”:“Android”,“appPackage”:“com.sec.android.app.popupcalculator”,“appActivity”:“com.sec.android.app.popupcalculator.Calculator”},“capabilities”:{“firstMatch”:[{“platformName”:“Android”}]}}
HTTP/1.1 400 Bad Request
Content-Length: 141
Content-Type: application/json

{“status”:100,“value”:{“error”:“invalid argument”,“message”:“Bad capabilities. Specify either app or appTopLevelWindow to create a session”}}

My Code is simple

AppiumOptions options = new();

  •  *
    
  •            options.AddAdditionalCapability("udid", "R9WR403P7KJ");*
    
  •            options.AddAdditionalCapability("platformVersion", "11.0");*
    
  •            options.AddAdditionalCapability("deviceName", "SM-T500");*
    
  •            options.AddAdditionalCapability("platformName", "Android");*
    
  •            options.AddAdditionalCapability("appPackage","com.sec.android.app.popupcalculator");*
    
  •            options.AddAdditionalCapability("appActivity", "com.sec.android.app.popupcalculator.Calculator");*
    
  •            _driver = new AndroidDriver<AndroidElement>(new Uri("http://127.0.0.1:4723"), options);*
    

Any advice greatly appreciated
Thank you.

Have you tried adding ‘app:’ or ‘appTopLevelWindow’ capabilities? The error looks pretty straightforward. Seems like ‘options.AddAdditionalCapability(“app”, "/path/to/.apk’")’ would be easiest.