How do I select this checkbox in the listView?

Try this and let me know if this works

try this driver.findElementByAndroidUIAutomator(“new UiSelector().className(“android.widget.Button”).text(“Primary Account”)”);