Showing posts with label eclipse. Show all posts
Showing posts with label eclipse. Show all posts

Tuesday, August 31, 2010

Battle Drill: Grab Screenshots from the Emulator

Task: Grab a screenshot from the avd emulator running in Eclipse
Condition: Android SDK and ADT with Eclipse working, at least 1 instance of the avd emulator created
Standard: User gets a .png screenshot of the app running in the emulator

Procedure:
1. In Eclipse, go to Window -> Show View -> Other... (or use hotkey Alt+Shift+Q *release, pause* Q)
2. In the Show View box, under Android, select Devices
3. You should now have a Devices tab either floating on your workspace or docked
4. Press the Screen Capture button in the Devices view.  It will take a screen shot of what is showing in your emulator and open the Device Screen Capture window.
5.  Click Save

//End procedure

Thursday, August 26, 2010

Battle Drill: Manually Select a Different Emulator

I like to have multiple instances of the avd ("Android Virtual Device"), i.e. emulator running while I do development in order to test my app on the various SDK versions.  You can install your app onto the different emulators using the 'adp' tool with the -s option, but since I use Eclipse, I'd rather select my target device from within that IDE.  Here's how:

Task: Run your app in the avd emulator instance of your choosing
Condition: Eclipse with two or more avd emulator instances
Standard: The app runs in the emulator you selected

Procedure:

1. Run -> Run Configurations -> Target tab ->
2. Under "Deployment Target Selection Mode", select Manual
3. Click Run

// End procedure