After the release of the latest android4.0 source code, I believe many people are eager to try it like me. In fact, the download and compilation of 4.0 code are similar to those of previous versions, but there are some minor differences, write it down for reference by beginners who do not know the truth
First of all, in the development environment, Google recommends that you use ubuntu10.0.4 and preferably 64-bit. Since it is for work and study, follo
is:
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repoBut how do not move down, in the article (http://blog.csdn.net/legendof1991/article/details/17005849) with this URL:
$ curl http://git-repo.googlecode.com/files/repo-1.13 > ~/bin/repoYes. You can choose either of the two!
Grant executable permissions:
$ chmod a+x ~/bin/repo
PS: Actually, this is a script file written by Google to automatically download the
Download. in Java, the main body of the program is put, and in the util package, some common methods are put, among which fileutils. java puts some basic operations on the file, httpdownloader. java provides some basic download operations.
Step 1: first look at the main program section
Package Mars. download; import Mars. util. httpdownloader; import
This article describes the Android rewrite TextView to achieve a neat text typesetting method. Share to everyone for your reference, specific as follows:
Xrtextview class
Package rong.android.test;
Import Org.json.JSONArray;
Import org.json.JSONException;
Import Android.content.Context;
Import Android.graphics.Canvas;
Import Android.graphics.Color;
Import Android.graphics.Paint;
Import Android.util.AttributeSet;
Import Android.view.View;
Import
on the top, similar to bidding) 3: since we need to rank by download, let's write a circular download and change the IP address at any time, just as if we had used to brush the IP address a long time ago. Let him keep repeating the download for a day. for the next 0.8 million. As for the number of opens and activity, you don't need to worry about the product ran
second is based on Labor (who pays more for the money and who is on the top, similar to bidding)
3: since we need to rank by download, let's write a circular download and change the IP address at any time, just as if we had used to brush the IP address a long time ago. Let him keep repeating the download for a day. for the next 0.8 million. As for the number of
This article provides 2 pieces of Android code, the implementation of the download from the Android client zip file and implementation of the ZIP file decompression function, very practical, the need for Android developers can try.
Download:
Downloadertask.java
Cop
Android L downloadAndroid L has finally come out, so we can download it for a while, so how can we get the latest L branch?Summary by following the dummies steps (Linux Ubuntu)1. Get the repo File(1) curl https://storage.googleapis.com/git-repo-downloads/repo> ~ /Bin/repo(2). chmod a + x ~ /Bin/repo(3). export PATH = ~ /Bin: $ PATHCurl is a tool that uses commands in linux to initiate network requests. Afte
= Request.getsession (). Getservletcontext (). Getrealpath ("/vioce"); System.out.println (Realpath); File dir = new file (Realpath), if (!dir.exists ()) {dir.mkdirs ();} Fileitemfactory factory = new Diskfileitemfactory (); Servletfileupload upload = new Servletfileupload (factory); Upload.setheaderencoding ("UTF-8"); String fileName = null;try {listWe can see that when the upload method is executed, the image uploaded from the android side is alrea
# space.
#
# Additionally, comments (such as these) may is inserted on individual
#lines orfollowingthemachinenamedenotedbya ' # '
#
# For example:
#
# 102.54 9 4.97 rhino.acme.com#source server
# 38.25 6 3.10 x.acme.com #xclienthost
# localhost name resolution is handled within DNS itself.
# 127.0 0 .1 localhost
# ::1 localhost
//Pro, is to add this
Android multi-thread Analysis 5: Use AsyncTask to asynchronously download imagesAndroid multi-thread Analysis 5: Use AsyncTask to asynchronously download images
In the first article in this series, "Android multi-Thread analysis: downloading images asynchronously using threads", we demonstrated how to use threads to c
following command in the terminal window:
1
sudo apt-get install git-core curl
For example, in the first line, press Enter next to complete installation.
Step 5: Install the repo script
1
curl http://android.git.kernel.org/repo >~/repo
Step 6: grant repo executable permissionsThe picture is still the one above. Take a closer look.
1
chmod a+x ~/repo
Step 7: create a directory mydroid and enter t
On the paper, you may have to learn more about it.
I have been engaged in Android development for more than two years. I used the source code provided on the platform in my company. I finally prepared to thoroughly filter this process one day, I found that this process was not as complicated as I thought. I had a lot of information on the Internet and Google or Baidu when I encountered some problems. But after this process, I felt quite clear.
1.
Reference: Solves the download error when downloading the android source code.
My download and compilation Environments
Ubuntu 12.04 64-bit Lenovo ThinkPad I3 2G
Recently, the android browser plug-in needs to use the android source code for compilation (not the fram
There is a detailed comment in the code:1 /**2 * This method is called the system's download manager3 */4 Public voiddownloadapk (Context context,string url) {5 /**6 * The reference variable returned here is a unique ID assigned by the system for the current download request .7 * We can regain this download
Android Basics Getting Started tutorial--7.5.4 webview file Downloadtags (space delimited): Android Basics Getting Started TutorialIntroduction to this section
This section introduces you to the knowledge of WebView download files, when we are using a common browser, such as UC,When we click on a downloadable link, it will be downloaded, webview as a bro
In tomcat6.0 webapps\root an. exe executable file (if you put. mp3,. jpg, and so on, the download process can be corrupted or viewable, If the. exe executable file download process is corrupted, then start Tomcat, double-click the Startup.bat under the Bin folder, and the following interface appearsRemember not to close this form, if you close the subsequent file downlo
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.