Traditional Culture Encyclopedia - Traditional stories - What technology do you need to learn to develop Android software?

What technology do you need to learn to develop Android software?

There are many development technologies for Android. You can't learn it all at once at the beginning, and you don't have to learn it all at the beginning. But some technologies are very common and need to be laid at the beginning.

1, activity life cycle

Although Android has four components, it is undeniable that Activity is the most commonly used. Therefore, it is necessary to master the life cycle of Android. In fact, the life cycle is to remember when those active methods are called by the system, so that the corresponding logic code can be written into the appropriate methods.

As for the service and broadcast components, we can slow down a little and study them when they are actually used.

2. Interface development technology

Interface development is a basic technology, which is needed by almost all programs. There are three kinds of interface development in Android development:

1) uses xml file layout.

It is the most common application software development technology to use xml to lay out interfaces first and then refer to them in activities. This method is used the most and needs to be learned the most. You need to be familiar with:

A) Five layouts

A deep understanding of the five organization modes of controls is a basic foundation, so that you can flexibly use each layout structure in the actual interface and construct the required interface.

B) public control

There are many controls, at least you need to know what each control does, and you can look up specific parameters and methods when you need to learn.

C) beautiful interface

In many cases, the controls of the system can't meet the requirements, and they need to be beautified by adding backgrounds and changing pictures, and they need to be familiar with how each control can be plum blossom.

With the above knowledge, we can make various interfaces by nesting layout. If you are familiar with the usage of include, you can reduce the repetition of xml and facilitate later modification and maintenance.

2) Dynamic creation using code

Sometimes you need to create some layouts and controls dynamically, so you need to use LayoutInflater to create some dynamic interfaces.

3) Draw your own interface

Commonly used in the game, inherit SurfaceView and draw it yourself.

3. Data storage technology

There are three ways to store data in Android:

1) shared preferred storage

Simple data can be stored in this way, and some basic data can be stored in the form of key-value pairs.

2) File storage

Store data in the form of a file, which can be the storage of the mobile phone itself or the SD card. The data format of the file is defined by itself.

3)SQLite database storage

Operating with standard SQL statements is the first choice for complex data.

4, network programming

There are not many Android programs that don't need to be connected to the internet now. So network programming is also necessary. General companies will have their own network architecture, but they should be familiar with the basic network.

1)HTTP networking

Using Http networking +Json data format is the first choice for many clients now.

2) Socket network

As for the connection methods such as Bluetooth, you can learn when the project needs it.

For the system functions of mobile phones, such as making phone calls, sending text messages, reading system parameters, etc. You can study on demand without any trouble.

Secondly, mobile phone software is related.

Android development is different from ordinary computer software development, and it needs to know the operating habits of mobile phones, such as small screen, limited memory and limited battery. Therefore, it should be considered as much as possible in the actual development and design.