1. Install repo
$ mkdir ~/bin $ echo "export PATH=~/bin:\$PATH" >> ~/.bashrc $ source ~/.bashrcObtain repo and grant executable permissions (or refer to the official google website)
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $ chmod a+x ~/bin/repo
2. Create a local version Library
$ mkdir -p /work/git/android $ cd /work/git/
a person who has not used Java and Android to develop the Android application use case with C + + so library using the hello-jni of the NDK (for example), for those unfamiliar with Java and Android, it takes time and hopefully this article helps people like me, welcome to reprint: 1. Download install
the module we need to rely on Build.gradle Add the following code to the file:That's all you can do.Import an open source library built on EclipseThe big difference between projects built on Eclipse and projects built on Android Studio is that the directory structure is different.We first copy the module folder to our project directory, then add the module to the Settings.gradle file and then introduce the
Android projects may use a lot of external three-party libraries, such as **.jar or reference a third project, then where do they refer to these things? Let's see.If the introduction of a three-party jar package, we default is placed in the Libs folder, and we add to build path by adding our classpath, then this action will affect the configuration file is which, the effect is:. Classpath We look at the configuration file content: That's it, we can se
Android Studio adds a user library like eclipse and androideclipse
ExampleReference users-library. Users-library is used during compilation, but jar is not packaged into apk. The required content is provided by services installed on Android or
Android open-source project: Image download cache library picasso
Picasso is an open-source Android image cache library of Square. The address is http://square.github.io/picasso/. you can download and save images.
Picasso has the following features:
Reclaim and cancel the current download in the adapter;
Complex gra
When using Android Studio development, the third-party library Slidingmenu (now deprecated), however, but how to import third-party libraries or need to know, after looking at the various materials, know a more easily feasible methodThe steps are as follows1. First, you need to download Slidingmenu (Https://github.com/jfeinstein10/SlidingMenu) from GitHub2. Next, right-click New->module on your project (thi
Android uploads the library to Jcenter ultra-simple complete steps and encounters with various pits
In the "Play The SQLite series" (vii) to create a lightweight ORM tool class Sqlitedbutil operations databaseWe can see the super-concise usage of this tool class: it only needs to be introduced in Gradle:
‘cn.bluemobi.dylan:sqlitelibrary:0.1‘
Can be used, so what's going on here? This
The previous article FFmpeg 1.2 for Android dynamic library compilation introduced how to compile the dynamic library, but the dynamic library generated at that time contains a total of 10 so files, in this way, loading will seriously affect the startup speed of the software. Many enthusiastic children's shoes later sa
Androidgraphics2dtutorial defines the main activity of the application, and you can start writing each of the concrete two-dimensional drawing examples below. Different examples will try to adopt different UI controls: Menu,content Menu,dialog,custom Dialog,button, and so on. Example uses the Guide bee two-dimensional graphics library, the Guide Bee two-dimensional graphics library graphics 2D API implement
1. What is volleyBefore this, we need to communicate with the network in the program, the general use of Things is asynctaskloader,httpurlconnection,asynctask,httpclient (Apache), etc., this year's Google I/O On 2013, Volley was released. Volley is a network communication library on the Android platform that makes network communication faster, simpler, and more robust.This is the origin of the volley name:
implemented a class called RemoteImageDownloader by myself, which is really difficult to look back after twists and turns, considering the mechanism of downloading the same URL only once, caching, error, and retry at the same time, and considering how to manage the queue for multiple requests, what's even more painful is to prevent Decoding of multiple images at the same time, and downsample if necessary to prevent memory exceeding the limit ...... Throughout the development process, I continue
After android adt is upgraded to version 22, you cannot add the jar to the lib library. androidadt
At present, there is a large android app project that has referenced many class libraries and has been running well. Today I upgraded the Eclipse ADT plug-in to the latest version (v22) and upgraded the sdl. In the entireThe upgrade process was good and there was n
On the official website of opencv, how to use the opencv library in Android?ArticleBut according to that article, it is impossible to successfully import the opencv library. Therefore, this article provides the correct method for mounting the database and the sequence of function calls when mounting opencvmanager.
First, this article does not discuss how to
Before the Theme theme in the inventory file is always changed to the theme @style/theme.appcompat.light defined in the library project, you can only use the default theme @style/apptheme ApplicationAndroid:name= "Com.example.googleplay.global.GooglePlayApplication"Android:allowbackup= "true"Android:icon= "@drawable/ic_launcher"Android:label= "@string/app_name"Android:theme= "@style/theme.appcompat.light" > ActivityAndroid:name= "Com.example
Libiconv is an open-source library that provides transcoding functions across platforms. It provides a conversion function: iconv () to implement conversion between different encodings, the libxml2 library compilation on the Android platform requires the libiconv library. Therefore, the libiconv
This article focuses on how to create an Android library and use the resources provided by this library in your project, in the following steps:1. Create an Android project named Sourceproj2. Right---properties, click on the android tab, then select the bottom of the is
In development, we often need to use Viewpager in conjunction with fragment, such as:We can use the three-way open source Pagerslidingtabstrip to achieve, or viewpagerindicator, I generally favor the former. Now we can use the tablayout of the design support library to implement it. The final:Creating layouts"1.0"encoding="Utf-8"? >"http://schemas.android.com/apk/res/android"Xmlns:app="Http://schemas.androi
Android Chart Library Mpandroidchart (14)--Using the same chart in a ListView type
You long time no see, recently very busy, all the blog updated relatively little, here today to say a relatively simple chart, that is, in the ListView using the same icon, because we will explain in the next article using different charts, the same chart is relatively simple, we look at
Specifically h
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.