During development, we may need to know the host names of some services on the mobile phone, such as text messages and contacts. Therefore, we need to use the GIT tool to download the source code of the android program, the following is a brief introduction:
Git tool:
Http://code.google.com/p/msysgit/
For example:
Steps for getting source code:
1. Download the GIT tool from the above website
2. log on to the source code website.
Https://github.com/android
Find the source code of the program to be downloaded:
Search --> enter the program Keyword --> display the link of the program --> click --> get the download URL of the program source code
3. Use the GIT tool: Click to clone an existing version Library:
Sourcelocation: Enter the URL obtained from the source code website.
Targetdirectory: storage path: New
Eg:
Note:
Git1.7.7 cannot be uninstalled after installation. You can overwrite it with another version before uninstalling it.
Do not use a Chinese directory when using git; otherwise, the git gui reports an error and cannot be started. You can delete the. gitconfig file in drive C.