-
Notifications
You must be signed in to change notification settings - Fork 17
(Android) Projects
All paths presented in this entry are relative to project's main directory which is obtained by cloning the repository.
Please note that all tests written for the application should be contained within com.blstream.myguide.test
package (or in a child package).
- assuming you have ADT plugin installed and configured
- tested on Juno
- stronly recommending creating a new, empty workspace
This project comes with preconfigured Eclipse project which should be imported with the following steps:
- Enter Eclipse
- From menu bar select
File -> Import
- In the appeared window, from
Android
group, chooseExisting Android Code Into Workspace
and clickNext
- Select project's root directory. You should see several entries including MyGuide and MyGuideTests, make sure to import them all.
- Press
Finish
Now you should have a fully working Eclipse projects integrated with your workspace. Should any errors occur, clean all the projects and restart your IDE.
Running tests with Eclipse is quite simple: right-click on MyGuideTests and select Run As -> Android JUnit Test
.
Before you start coding please make sure you have set a proper Code Convention for the project. It is defined in /android-formatting.xml
. To use it, follow these steps:
- Enter Eclipse
- Right click on MyGuide project and select
Properties -> Java Code Style -> Formatter
- Check
Enable project specific settings
box - Press
Import
button, navigate to project's root directory and selectandroid-formatting.xml
file - Press
Apply
button - Repeat steps 2 - 3 for MyGuideTests project
- From
Active profile
combobox choose just imported profile (should be named Android)
- tested on Android Studio
0.4.2
This project comes with preconfigured Android Studio project. In order to use it follow these steps:
- Enter Android Studio. You should see a Welcome screen if not, you can be working on an other project so close it.
- Select
Open Project
option. - Navigate to the project's main directory location. It should have a nice icon corresponding to the Android Studio. Press
Ok
.
Tests can be run with the following steps:
- In the
Project
window navigate to/tests/src/
- Click it with your mouse's right button and select
Run -> All tests
.
Before you start coding please make sure you have set a proper Code Convention for the project. TODO