Showing posts with label debug. Show all posts
Showing posts with label debug. Show all posts

Monday, February 13, 2012

Test and Debug

After writing your codes, it's time to test my application.

Using Android Virtual Emulator
One way to test your application is to run it on a virtual device.  The Android Virtual Device is included in the Android SDK tools.

1. Run the AVD manager.
On Eclipse, click Windows > Android SDK and AVD Manager.

2. Create a new virtual device.
- Name: virtual_galaxyS
- Target: Android 2.2
- SD card size: 512MiB
- Skin: Built-in: HVGA

* You can create several AVD with different screen sizes and Target versions.

3. Run your application.
On Eclipse, click Run > Run

* If you have multiple AVD, choose one that you want to use.

Now, have you made a good, working app already? Then good for you but most of the cases, it's not. So we need to debug.

Debugging

In debugging, the DDMS and DEBUG perspective view in the Eclipse IDE are  helpful.


The Debug Perspective in