Android, Robotium - Issue taking screenshot

后端 未结 3 1262
感动是毒
感动是毒 2021-01-15 16:40

I\'m trying to take a screenshot of my Android application using Robotium, I\'m using the below function that I found here.

public static String SCREEN_SHOTS         


        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-15 17:21

    Make sure your emulator has some megabytes set aside for the SD card.

    If you want to pull the jpg back to your PC, you can get java to run this command line:

    C:\Users\Me\android-sdks\platform-tools\adb.exe pull /sdcard/test_1329402481933.jpg c:\

提交回复
热议问题