0422 Math Pocket Elf App

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.