In order to develop android applications, it is too troublesome to find the sdk has no source code during development. The following describes how to download the source code and configure it.
Git is required to download the source code. Download a git first. The following operations are completed in windows.
After ins
First, let's take a look at what repo is. We know the code of the android open-source project and use a repo tool to effectively manage hundreds of git projects under android. In fact, repo is not a program, but a script project... and git is the real version management tool. To put it bluntly, repo is a bunch of batch processing (written in Python). It encapsulates git commands reasonably and aims to manag
/************************************************************************* * i.mx6 Android 5.1.1 Download, compile * Note: * Here to mention is the 4.2 version, the compilation is interrupted, you continue to make up as if it is OK, but this * 5.1.1 version seems to have to start again, this is a bit depressing. * 2016-9-9 Shenzhen Nanshan Ping Shan village Zengjianfeng *************************************
As mentioned earlier, Android porting is primarily a Linux kernel migration, and Linux kernel porting is primarily a Linux-powered migration, so in order to develop and test Linux drivers, it is necessary to learn in Ubuntu How to build two sets of development environments under Linux: Android Application development environment and Linux kernel development environment. The construction of the Linux kernel
used it, the practice on the Internet is a bit redundant. Maybe the network environment is different. Try again.In the user directory, create a bin folder to store the repo and set the path to the environment variable:
[Plain]
View plaincopy
$ Mkdir ~ /Bin
$ Path = ~ /Bin: $ path
Download the repo script to execute the repo.
[Plain]
View plaincopy
$ Curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo> ~ /Bin/Repo
$ Chmod A + x ~ /
ADB is a 10 thousand-capable tool that allows you to manage the status of Android devices. For more information about ADB, see: http://developer.android. com/GUIDE/developing/tools/adb.html.
ADB has the following functions:
Download and install the APK application on the host and start running on the target device;
Start the shell of the target device on the host;
Use the ddms (Dalvik debug monitor serv
, need to download the driver. My test cell phone is the Galaxy Nexus i9250 that is downloaded below such as the following drivers% CD ~/tdroid/tdroid-4.3_r1% wget https://dl.google.com/dl/android/aosp/broadcom-maguro-jwr66y-5fa7715b.tgz% Tar- ZXVF broadcom-maguro-jwr66y-5fa7715b.tgz%./extract-broadcom-maguro.sh # (View the license and then type "I ACCEPT") ...% W Get https://dl.google.com/dl/
The first step,After the SDK manager starts, some Google XML files are parsed and some log messages are printed in log.After parsing, copy all the logs into a notepad (this step is because the Log window does not support the search), in the inside to find what you want to download, and then you can get the corresponding XML file.As an example:If you want to download the arm EABI v7a system image for
1. On a Linux terminal, run the following command to create an android directory under the user directory and enter the directory:Flat view printing? 1 mkdir android2 cd android2. Create the bin directory in android to execute the command:Flat view printing? 1 mkdir bin3. Add it to the environment variable PATH (this step can be skipped and will be described in step 1 ):Flat view printing? 1 PATH = ~ /
I. Install the VMWARE+UBUNTU environment, you can choose a new version as far as possible.Two. Source code downloadIn the case of a wall now, it is almost impossible to use git to download Android source code directly from Google.Fortunately found the image of Tsinghua University, the address is as follows:http://mirrors.tuna.tsinghua.edu.cn/help/AOSP/Then just follow the tutorial of this site step-by-step
The landlord has been grinding the sword for three years (not a sword of course) and has devoted himself to the android multi-thread download demo. Some people ask "How to write or demo ?", Because I am too busy,I wrote a little bit every day, and now I wrote a download device, which means the download management class
Android comes with the download manager, we can get to download the progress of the size and download completed and so on, but the Android Downloadmanager is not implemented such as pause, continue to wait for the function is not a breakpoint continuation, these days in the
PrefaceThis chapter provides a very practical function-download online videos. We also need to think about the product design and how to better integrate the newly added functions into existing products when it comes to multithreading, thread update, and other technologies, it's not just a simple interface. You are welcome to discuss product design and technical details!
StatementWelcome to repost, but please keep the original source of the article :)
Android Studio download and installation tutorial, androidstudio
Recently, Google launched a new development tool android studio at the Google I/O conference. This is a development tool based on intellij IDE. It is built using Gradle. I believe that students who have done java know this tool. Today, I installed it to try it out. I opened it and saw that it was th
For a basic overview of the use of StartService and its lifecycle, see Overview of basic usage of StartService in Android.
This article demonstrates the use of StartService and StopService (Startid) through a simple example of bulk downloading of files, as follows
The system interface is as follows:
The interface is very simple, just a button "bulk download article", the activity on the button to start
Detailed analysis of resumable download for Android 2
Since a blog cannot be written, this is followed by the previous blog.
After finishing the View in MVC, we need to consider the Control layer. His task is to use multithreading in the background to implement breakpoint download.
First look at the source code:
Public class FileDownloader {/* TAG for debugging
Experience Android Wear reason: Android Wear code has been released for a long time, has not tried, here is a compilation process and steps, if you want to try, this article assumes that the reader has been downloaded to compile Android experience, if not, please Google related articles install the appropriate environment , such as Java's various support librarie
Experience Android Wear reason: Android Wear code has been published for quite a long time. Has not been tried, here is a compilation process and steps, assuming to try. This article assumes that the reader already has the experience of downloading and compiling Android, assuming no, please install the appropriate environment for Google related articles. such as
, in the "HTTP proxy server" and "http proxy port" input box, fill in the above mirror server address and port, and select "Force https://... Sources to is fetched using http://... check box. Click the "Close" button to close the "Android SDK manager-settings" window and return to the main screen after Setup is complete.3, select "Packages", then "Reload".So .....But Android Studio selected
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.