Skip to content

Commit

Permalink
Updated README to help kick-start developers debugging/testing, and c…
Browse files Browse the repository at this point in the history
…hanged test Manifest to allow it to be debugged
  • Loading branch information
JoshuaGross committed Jan 15, 2011
1 parent c42dd42 commit f91984f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
17 changes: 13 additions & 4 deletions README.md
Expand Up @@ -38,11 +38,20 @@ Getting Started With Development

9. Sign a [Contributors License Agreement](https://github.com/downloads/todoroo/astrid/Contributors%20Licensing%20Agreement.pdf) and send it to astrid AT todoroo.com

Testing on a device - debugging
Testing on a device - Debugging
---------------
If you have trouble running Astrid on your device, it is recommended to:
1. Fully uninstall Astrid from the device: adb uninstall com.timsu.astrid
2. Restart Eclipse
How to debug/test on a USB device: (JoshuaGross Jan 14, 2011)
1. Plug in your device and make sure you can see it by running `adb devices`
2. If you cannot see the device, or want to restart debugging, do:
`adb kill-server`
`adb usb`
`adb devices` (make sure your device is listed)
`adb uninstall com.todoroo.astrid.tests` (you should see "Failure" if this was uninstalled already)
`adb uninstall com.todoroo.astrid` (you should see "Failure" if this was uninstalled already)
3. If you have not already, set up Run configurations in Eclipse; either under the "Run" or "Debug" menus.
To test the application, set up "Android Application". To run JUnit tests, set up "Android JUnit Tests".
Settings should autofill for you, you should be able to open a new configuration and run it.
If you run it in debug mode, see #2 above for getting adb to work in case it is finicky.

Contributors workflow
---------------
Expand Down
2 changes: 1 addition & 1 deletion tests/AndroidManifest.xml
Expand Up @@ -10,7 +10,7 @@
<!-- We add an application tag here just so that we can indicate that
this package needs to link against the android.test library,
which is needed when building test cases. -->
<application>
<application android:debuggable="true">
<uses-library android:name="android.test.runner" />
</application>

Expand Down

0 comments on commit f91984f

Please sign in to comment.