Objective
This blog from the perspective of development to introduce how to develop an Android app, it should be explained that this is just to provide a way to develop an app ideas, and will not introduce a lot of technical details, from the overall situation to grasp how to conceive of an app development, Let you on the independent development of an app when there is an understanding, if there is said wrong place, welcome to make brick message discussion.
Development environment
The development language used by the Android application layer is Java, which naturally needs to be used in the Java Runtime environment, whether you need to install the JDK in window or Mac system, and configure its environment variables, do not know what is called environment variables or how to match, Please use your own Baidu skills to learn by yourself.
Development tools
Development tools, Android for historical reasons, for a long time before the use of eclipse, we want to develop Android applications need to install another Google for IT development plug-in Adt,eclipse This open source software is excellent, also very professional, But just use it to develop Android is a little chicken, if not optimized for eclipse, will be very card, Google is not willing to jirenlixia, in the end, specifically for our developers developed by the vast number of developers now respected Android Studio, Now 2.0 preview version also come out, everybody hurry to go down.
Analog device
Android comes with the simulator has been widely criticized, it is too slow, compared to other people iOS simulator is so smooth, Android developers straight shout Good bitter force ah, but fortunately behind the third party than the original fluent n times the simulator genymotion, Everyone can go to the next personal version of your usual development test used. The best way is to use the real machine test, after all, the real machine is the real environment.
Android Core Basics
In front of the preparation work, want to develop an Android app, you have to master the core of Android basic knowledge, for beginners of Android children's shoes, want to eat a fat man is not possible, or have to put the foundation to complete the independent development, Android is not difficult to get started, After learning the basics you just have to develop the basic conditions of the app, want to do a good app there is a long way to go, experience is by constantly practice heap out, find a system of courses to seriously study, online education resources, such as MU class network, geek College has a lot of good learning resources, Children's shoes for their own merit to learn.
Promotion: http://edu.csdn.net/course/detail/545 (author's course)
Product development process
The flow of normal Internet development apps is as follows:
-Product planning, product orientation
-demand research, output requirements documentation
-Requirements review, revise requirements document
-Product dog painting app wireframe provided to the shot Chicken Division
-The Shot Chicken Division designs the visual manuscript according to the line block diagram
-Program Apes build UI framework based on visual manuscripts
-Program Ape Development function according to requirement document
-Test cases are written and tested according to scheduling schedule
-Program Ape Repair regression test feedback bug, submit beta version
-Test pass, submit to Operation Meow Release to channel online
The above is the author's experience summary, there may be less accurate place, but the overall process is so, we developers should be aware of their role in the entire product, understand their job responsibilities can be.
Quick Build Project
Android than not to imagine so difficult, just start to learn more things, all of a sudden digestion will be more vacant, I write this blog is to help you tidy up the development of ideas.
Quick Build project is also a skill, and this skill can only be perfected by yourself, there will be a lot of repetitive work at the beginning of development, if there is no awareness to improve their development efficiency, perhaps your 10 years of work experience represents only a year of experience spent ten years.
What to do, the author provides a summary of their own, for reference only:
-Set Development specifications
-Build UI Framework
-Integration with the development library (or self-made wheels)
-Third party service integration (subject to availability)
Set Development Specifications
A project is generally not only one person independent development, even if it is independent development, we should also set the development specifications, generally what kind of norms?
-Naming conventions
-Code Specification
-Code Management Specification
Naming conventions
Naming conventions include:
-Project naming
-Package naming
-Class naming, member variable naming
-Resource file naming
We do each product will have a corresponding name, do not use Chinese name, it is best to express Chinese meaning in English, such as CSDN client, you can use Csdnclient as the name, we create the project can be used as the application name.
You can look at this article that was written earlier:
http://blog.csdn.net/wwj_748/article/details/42347283
Code specification
Code specifications Depending on the language, the development of Android using Java, naturally, according to Java coding specifications, such as the name of the camel name, the code should also conform to the development of Android code, such as the UI thread does not do any time-consuming operations, such as network requests, Database operations need to be put into child threads to do, only the UI refresh in the UI thread, like these specifications, can be based on their own problems encountered in the project, the benefits of the specification is to reduce the chance of stepping on the pit, improve the quality of development.
Code Management
For a frequently updated iteration of the product, it is not possible from the end of the line, this time we need to branch management of code, it is best to use git code warehouse to manage the code, as a qualified developer even git does not have to be justified, but also with SVN's children's shoes hurriedly abandon it into the embrace of Git, Its benefits are self-evident, to experience.
Building the UI Framework
Building the UI framework requires that we design according to the product's navigation patterns, which are commonly used in the market:
Our app if not unexpectedly must be one of the navigation mode, the general wireframe we should know what the app will look like, developers do not have to wait for the visual manuscript and material came out before the start of work, we first roughly set a shelf, and so on after the visual manuscript to make adjustments.
Select a development library
In general, our app involves libraries that include:
-UI Framework (such as drop-down refresh Pulltorefresh, slide-out menu Slidingmenu)
-Network Request library (e.g. Okhtttp, androidasynchttp, Volley)
-Data manipulation library (e.g. Greendao, ormlite)
-Picture caching framework (e.g. Universal-imageloader)
-Data Analysis library (e.g. Gson)
The reason to choose these libraries, is definitely to avoid repeating the wheel, in terms of development efficiency, the use of excellent open Source Library can greatly shorten the development cycle and improve development efficiency, but from the perspective of personal elevation, we may become a only use API program ape, if you want to ascend, Making wheels or analyzing these excellent source codes is a good way to do it.
Third-party service integration
When we develop the app, we will certainly encounter some requirements, such as push demand, automatic upgrade, data statistics, social sharing, user feedback and so on, but for a fledgling enterprise or individual developers, all to develop their own, it would not be exhausted, like push this has a certain technical threshold, Can do a good job to set up a company, so the choice of some third-party services is an optional. If you later big, with the third party afraid of bad control, then do the bai, rich and capricious recruit to do their own, who call me rich.
In front of these things to develop an app enough, can not be developed to use also have a reliable test, there is no crash, operation flow is not smooth, experience is not good will have users to use. This is not a product perspective to judge the good and bad of an app, programmers need to consider from the code level, performance level to make our app better.
Cloud Test
After we have developed, we need to give the test engineers basic functional requirements testing, they have traditionally done is based on pre-written test cases to do regression testing, and then put the test bugs back to the engineer, the engineer to fix the bug, but this is really too unreliable, Sometimes we are too concerned about the function and ignore some of the more important things, that is the experience, to the user the most direct feeling is that your app is not stunning enough, enough fluency, the user may not care about how you do this feature. So we should go from the non-functional direction to do the test, our goal is to let users use the cool, rather than add some messy features. That how to measure non-functional factors, here is to mention "cloud test" this thing, because now too much equipment, if the company to buy a bunch of equipment to do testing, that cost, and equipment update too fast, you simply can't keep up, so there is a cloud test this thing, it is a cloud testing platform services, Provide a large number of mainstream models, we directly eliminate the cost of purchasing equipment, but also to obtain a sound test report.
Let's take a look at its benefits:
-End-of-cloud, eliminating the cost of testing equipment to purchase leases
-High efficiency saves testers ' cost and time
-Includes compatibility test, performance test, functional test
-Easy to operate, detailed test report generation
With so many benefits, you don't have to try it when you're missing a test engineer.
Packaged Online
Before the development process, testing links are no problem, you to achieve a full development of the app is not far away, the normal Internet company, will be the signature package apk to the operation, to them to write the copy, upload to the application channel, let the Channel to us to start and promotion. If it's a personal developer, it's up to us to do the work ourselves.
Summarize
This blog from the entire app development process to everyone to comb over, did not speak too much technical things, but understand the app process for their own grasp of the product is very beneficial, although we are only a small developer, but if you have to pursue, which day it is your turn to take charge of a product, You should be familiar with every aspect of the development, because of the problem, you also know how to solve the targeted. Although the author is only a small developer, but also happy to think, many times do not want to be led by others to walk, because our life should be held in their own hands.
If you think the article is good, then sweep the code to pay attention to the author of the public number bar, look forward to the lofty ideals of you.
How to develop an app (Android)