. (through this link to purchase, your account can be a discount of 10 yuan)
Download
The official download has two places, all need to turn over the wall.
Android Developer website
The website of the Android Developer website can be downloaded directly, but the site appears to have only updated beta and official e
friends who wish to transplant the kernel:(After reading the Benno porting process, I feel that even if you can compile the kernel opened by Google, it is not very significant, because this kernel includes many things to support qemu, the Code seems to be meaningless to friends who want to transplant to a real machine, but rather a hindrance ).
1) load the tool chain used for cross-compilation from codesourcery:Http://www.codesourcery.com/gnu_toolchains/arm/download.htmlHere I choose-> arm GNU/
+ + bytesskipped;
}
Return totalbytesskipped
}
}
method Two, Asynctask Asynchronous task
Starting with the Android 1.5 firmware Google provides a Asynctask class to help developers deal with asynchronous downloads, which, as opposed to thread, can run in the UI thread, and their internal implementations are derived from the concurrency package concurrent that started in Java 5 , the overal
Multi-threaded downloads are a way to speed up downloads by opening multiple threads to perform a task. You can make tasks run faster ... Multi-threaded task downloads are always available. For example, our mobile phone internal application treasure download mechanism. Must be through the use of multithreading created by the downloader. And this download can impl
Android Simulator Source DownloadThe download of the source code of Android Simulator is similar to the download process of Android AOSP Source Library, you can refer to Google's official Android Source
/mainfestThe above Code requires the repo to download the latest source code, that is, the master branch. If you wantFor other branches, run the following command.# Repo init-u https://android.googlesource.com/platform/mainfest-B xxxxx (Others)5) Start download.# Repo syncDepending on the network speed and machine configuration, this process will last for at leas
Reprint Please specify source: http://blog.csdn.net/l1028386804/article/details/46883927I. OverviewSpeaking of downloading files from Android. The Android API clearly requires time-consuming operations to be run in a sub-thread, and the download of the file will undoubtedly take a while. So you want to put the
, Android implements the default Progress prompt dialog box, ProgressDialog, which can be used with instantiation and some simple settings.
Copy Code code as follows:
Private class Downloaddbtask extends AsynctaskVariable-length input parameters, corresponding to Asynctask.exucute ()
ProgressDialog Pdialog;
Public Downloaddbtask {
Pdialog = new ProgressDialog (context, 0);
Pdialog.setbutton ("Cancel", new Dialoginterface.onclicklisten
This article describes the implementation of Android download file function of the complete sample code, for learning and research on Android programming is believed to have some help, especially for Android beginners have some reference value.
The full functional code is as follows:
Package com.test;
Import Java
WORKING_DIRECTORY
3. initialize the source code Repo if the latest code is downloaded, then: repo init-u https://android.googlesource.com/platform/manifest
If you download the code of a specific Android mature version branch, add the-B parameter, for example, the latest android 4.4 branch code:
Repo init-u https://android.googlesource.com/platform/manifest-B
Download Rubik's Cube live wallpaper android source code and android source code
Code:
Because it is running on a virtual machine, you can directly take the photo album if you have no photos to choose to run on your mobile phone. I would like to share with you some help if you think you can ~ {: Soso_e113 :}
Game so
In Android, AsyncTask downloads files in the background and displays the download progress from the drop-down menu. androidasynctask
During development, you always need to download files from the network, and sometimes you need to display the download progress in the drop-down menu.
Now I have written a Demo that encap
Run the following command in the download directory:
Git checkout remotes/ORIGIN/Android-2.6.29
(Take Android-2.6.29 as an example)
9: view the branches that can be switched by RepoCD. repo/manifestsGit branch-A | cut-D/-F 3
Troubleshooting:
1: occurs when repo sync is executed.
Fatal: '../platform/Abi
download it over the wall (the original article says you want to go over the wall, but you really don't need to go over the wall, just use thunder ):
Windows 2.2: http://dl.google.com/android/android-sdk_r06-windows.zip
Windows 2.1: http://dl.google.com/android/android-sd
configuration7. Create Cocos2d-x ProjectUnzip the cocos2d-x-3.4 compressed package you just downloaded into the folder you specified.Go to directory cocos2d-x-3.4/tools/cocos2d-console/bin/cocos.pyOpen Terminal Run cocos.py script Create textpython cocos.pycom.coco2dx.org -l cpp -d E:\cocos\projects
Parameter description: Test for Project name-P Follow-up package name-L followed by development language type, with CPP, LUA, JS three types-D f
instruction document on its official website. If you are interested, you can take a look.
For git reference documents, I recommend git magic. Here is a Chinese version of git magic.
Obtain anroid Linux kernel:
[Root @ localhost ~] # Mkdir Bin
[Root @ localhost ~] # Curl http://android.git.kernel.org/repo> ~ /Bin/Repo
[Root @ localhost bin] # cd bin/
[Root @ localhost bin] # chmod A + x ~ /Bin/Repo
[Root @ localhost bin] # cd/usr/local/src/
[Root @ localhost SRC] # mkdir project-
Runtime Environment (JRE) 6
Java Development Kit (JDK) 7
Optional for accelerated emulator: Intel processor with support for Intel VT-x, Intel EM64T (Intel 64), and Execute Disable (XD) Bit functionality
On Mac OS, run Android Studio with Java Runtime Environment (JRE) 6 for optimized font rendering. You can then configure your project to use Java Development Kit (JDK) 6 or JDK 7.Linux
GNOME or KDE de
rules are the same as those in Linux.
Mkdir android_sdk_src: create a directory for storing the Android SDK source files
Cd android_sdk_src: Enter the new directory
Git clone git: // android.git.kernel.org/platform/frameworks/base.git download Android SDK source code
Attached Android Resource Distribution Description:
-jdk
By the way, in the above third step sudo apt-get install sun-java6-jre sun-java6-plugin, a dialog box will pop up, then press the Tab key to switch the focus, then press Enter on the line.
3. other dependent packages. Run the following command on Ubuntu:
USER-NAME @ MACHINE-NAME :~ $ Sudo apt-get install flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl
A lot of software is installed here. copy and paste the com
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.