Joke Collection Website - Blessing messages - What technology do you need to learn to develop Android software?
What technology do you need to learn to develop Android software?
1. Activity life cycle
Although there are four components in Android, it is undeniable that Activity is the most commonly used. Therefore, mastering the life cycle of Android is a must. In fact, the life cycle is to remember when those methods of Activity are called by the system, so that the corresponding logic code can be written into the appropriate methods.
As for the services and broadcasting components, you can wait a little longer and learn them when you actually use them.
2. Interface development technology
Interface development is a basic technology, which is needed in almost all programs. There are three kinds of interface development in Android development:
1) using xml file layout
It is the most common application software development technology to use xml to lay out the interface first, and then refer to it in Activity. This method is the most used and needs to learn the most. You need to be familiar with:
a) five Layout layouts
A deep understanding of the ways in which five layouts organize controls is a basic foundation, so that you can flexibly use each layout structure in the actual interface and construct the required interface.
b) There are many commonly used controls
. At least you should know what each control does, and you can look up the specific parameters and methods when you need to learn them.
c) The controls in Meihua
system can't meet the requirements in many cases, so you need to beautify them by adding backgrounds and replacing pictures, and you should be familiar with how each control can go to Meihua.
after mastering the above contents, you can make various interfaces by nesting the layout. If you are familiar with the use of include, you can reduce the repetition of xml and facilitate later modification and maintenance.
2) using code to dynamically create
sometimes it is necessary to dynamically create some layouts and controls, so you need to use LayoutInflater to create some dynamic interfaces.
3) Draw your own interface
Commonly used in games, inherit SurfaceView and draw it yourself.
3. Data storage technology
There are three data storage methods in p>Android:
1) SharedPreferences storage
For simple data, this method can be used to store some basic data in key-value pairs.
2) file storage
store the data in the form of a file, which can be the storage of the mobile phone itself or the SD card, and the data format of the file is defined by itself.
3)SQLite database storage
operates with standard SQL statements, which is the first choice for complex data.
4. Network programming
There are not many Android programs that don't need networking now. Therefore, network programming is also necessary. Generally, companies will have their own networking structure, but they should be familiar with basic networking.
1)HTTP networking
using Http networking +Json data format is now the first choice of many clients.
2)Socket networking
As for the connection methods such as Bluetooth, you can learn when the project needs it.
You can learn the system functions of the mobile phone as needed, such as making phone calls, sending short messages and reading system parameters. It's no trouble.
Secondly, mobile phone software-related
Android development is different from ordinary computer software development, and it is necessary to know the operating habits of mobile phones, and know that the screen of mobile phones is small, the memory is limited, the battery is limited, etc., so it should be considered as much as possible in actual development and design.
- Related articles
- The speech at the 2022 annual meeting is very short.
- What blessing message should I send to my predecessor during the Mid-Autumn Festival?
- Will you send a text message when the results of the art joint exam come out? Xi'an
- A sentence expressing disappointment
- 12345 are all outsourced?
- How to inquire about Alipay deduction items?
- Hainan Airlines Telephone Customer Service Phone
- I want to buy a flip phone these days, can I? Elder sister recommended it.
- How to set the gesture password of SMS on oppo mobile phone?
- What about the early warning of microfinance?