appium/appium — pull request #1778 by thu2004 (2014-01-20 16:13:15+00:00)
Title: Support mobile method 'launchApp' for selendroid

Hi

I used the methods closeApp and launchApp to simulate restart the app when a test has failed before the next test start.

def restart(self):
""" restart the application """
logger.info("Restart the app")
self.driver.execute_script("mobile: closeApp")
self.driver.execute_script("mobile: launchApp")