Yeah…This is not required !!
- Just create a class and use TestNG @BeforeClass annotation, give DesiredCapabilities with specific to AndroidDriver using @Parameters (Those can override in TestNG.xml).
- Inside @Test write your script
- Call the class file in TestNG xml file as i was mentioned above.
Regards,
Bhaskar.