The first step to deploying this app project is:
I. Prerequisites download and install the JDK
Online Illustration: Teach you to install JDK http://www.lvtao.net/server/windows-setup-jdk.html
Two. Download and install Eclipse
Http://jingyan.baidu.com/article/d7130635194f1513fcf47557.html
Installing Eclipse installation is done by building an Android operating environment. Download the ADT plugin and install:
Download path for ADT plugin:
For offline installation ADT package, the following is the steps, followed by a step to the line, if you can not find me, ask Niang!!!
Select work with: Add after ... → Enter Android plugin→ in the local option to find the ADT package in archive → Click ok→ to check the option in the name below.
Success!!!!!!!!!
Three. Fork the Math Pocket Elf app project and import into eclipse
Choose file-from Eclipse import-"git-" from the Git project
Select next-"SELECT Uri"
Select Next and paste the following information (note the password for the account you requested on GitHub):
Four. Conducting unit tests
Package name.feisky.android.test;
Import Android.test.AndroidTestCase;
Import Junit.framework.Assert;
public class Personservicetest extends androidtestcase{
public void Testsave () throws exception{
Personservice service=new Personservice ();
Service.save (NULL);
}
public void Testadd () throws exception{
Personservice service=new Personservice ();
int Result=service.add (1, 2);
Assert.assertequals (3, result);
Assert.assertequals (2, result);
}
public void TestAdd1 () throws exception{
Personservice service=new Personservice ();
int Result=service.add1 (1, 2);
Assert.assertequals ( -1, result);
Assert.assertequals (0.5, result);
}
public void TestAdd2 () throws exception{
Personservice service=new Personservice ();
int RESULT=SERVICE.ADD2 (1, 2);
Assert.assertequals (2, result);
Assert.assertequals (3, result);
}
public void TestAdd3 () throws exception{
Personservice service=new Personservice ();
int Result=service.add3 (1, 2);
Assert.assertequals (0.5, result);
Assert.assertequals (1, result);
}
}
Summarize:
Everyone is very hard, but to learn a completely do not understand the language is not to say can do a good job, or to learn from other people's study, but also to work hard, but from the writing Android app still has distance, total feeling time is not enough. Because to do this to first Android, but we have not learned Android, so two days to make up the things, you do not think how big on the bar, do not abandon the look at it, despite the spray, no ~.
0422 Math Pocket Elf App