Use toolbar instead of action bar in main activity
This commit is contained in:
@@ -12,7 +12,6 @@ print 'Screenshot will be located in ' + outFolder + ' with name ' + outFilename
|
||||
apk = '/home/serso/projects/java/android/calculatorpp/calculatorpp/misc/other/tmp/2012.11.25/calculatorpp.apk'
|
||||
package = 'org.solovyev.android.calculator'
|
||||
activity = 'org.solovyev.android.calculator.CalculatorActivity'
|
||||
mobileActivity = 'org.solovyev.android.calculator.CalculatorActivityMobile'
|
||||
operatorsActivity = 'org.solovyev.android.calculator.math.edit.CalculatorOperatorsActivity'
|
||||
deviceName = 'emulator-5580'
|
||||
|
||||
@@ -56,18 +55,6 @@ if device:
|
||||
#outFilename = outFilename + '_' + str(time.time())
|
||||
takeScreenshot(outFolder, outFilename + '_operators');
|
||||
|
||||
runComponent = package + '/' + mobileActivity
|
||||
|
||||
print 'Starting activity ' + runComponent + '...'
|
||||
device.startActivity(component=runComponent)
|
||||
|
||||
# sleep while application will be loaded
|
||||
MonkeyRunner.sleep(4);
|
||||
|
||||
print 'Taking screenshot...'
|
||||
#outFilename = outFilename + '_' + str(time.time())
|
||||
takeScreenshot(outFolder, outFilename + '_mobile');
|
||||
|
||||
print '#########'
|
||||
print 'Finished!'
|
||||
print '#########'
|
||||
|
Reference in New Issue
Block a user