The commands here are based on ndk Release 5 and different from those before release.
Compile command
Ndk-build
Force re-compile, under the ndk root directory
. Ndk-Build-B is the mandatory compilation Option
Compile project directories to
I am going to use adk of Version 2.3. I want to use ADB to debug the database where I learned SQLite. As a result, I entered the ADB command under cmd.
Checked n multi-Environment ConfigurationArticleIt indicates that the configuration is correct.
System. IMG is a yaffs2 Image
1. UnpackUnyaffs is required to unpackage system. IMG,: Http://code.google.com/p/unyaffs/downloads/listPut the downloaded file in the same folder as system. IMG.Command:
./Unyaffs system. img
2.
Checkbox, that is, multiple options. The chechbox control is provided in Android, which is very convenient to use.
Checkbox Effect
Main. xml source code
checkbox Event Response setoncheckedchangelistener
BenProgramJava
I think the strings may be different in length and cannot be fully displayed. The boss said that it would be difficult to make them into a rolling effect, but the omnipotent Baidu told me that it is not difficult, as shown below:Textview plus three
In layout. after the absolute size of imageview is defined in the XML file, the subsequent size display cannot be dynamically modified. In fact, this problem is taken into account when the Android platform designs the UI control, to adapt to
AndroidSource codeSolution to frequent repo sync failures during retrieval:
See: http://www.tonypig.net /? P = 9998. Thanks to the author;
1. Modify RepoChange git in repo_url to http: 2. Download The Source
CodeDirectory (android_source),
The two methods are copied from the Internet to obtain the available memory and the total memory, so that we can get the used memory.
Private long getavailmemory (context){// Obtain the current available memory size of AndroidActivitymanager AM =
Original address: http://www.cmath.net/read.php? Tid = 57 when you start reading this article, read the Interface Activity of getting started with Android development (4) first.
There are two types of jumps between activities: Display and implicit
First, set the view to overwrite the dialog at the top.
Then, add style for translucent in values/styles. xml:
Continue adding style for fade-in and fade-out effects:
In the anim folder, add the fading_in.xml for fade-
The basic sequence for compiling Android systems is as follows,
Initialization
Use the envsetup. Sh script to initialize the environment.
$ source build/envsetup.sh
Or
$ . build/envsetup.sh
Select the compilation target
Use the lunch command
Tabhost is a multi-label control that contains multiple tabs. Multiple la s can be displayed on one page.
Method 1:
Create an activity to inherit tabactivity and generate tabhost using its Method
Tabuse1.java
Package Org. tabhost; Import Org.
From: http://apps.hi.baidu.com/share/detail/30108924
1.Android shares the same layout file in XMLI always thought that sharing the same layout file was copied after the previously written layout, Or I used layoutinflater add in Java code. But
In the process of learning controls, we should have a deeper understanding of some common XML attributes, which will help us continue to learn advanced android technologies.
1: Android: ID
To reference a control in code or in an XML layout file,
Print I, W, and E options:
I/activitymanager (62): Starting: intent {CMP = com. Moming. Marten/. systemplayeractivity (has extras)} from PID 415
W/drawable (415): Bad element under : Background
I/stagefrightplayer (34): setdatasource ('/mnt/sdcard/
Today, we will introduce how to implement the vibrate prompt after a call is connected in Android. The call here is mainly for outgoing calls. if we want to give a vibration prompt when the call is connected, we need to know when the call is
1. Start the android simulator first.
2. Open the CMD command line window.Enter ADB shell to manage system folders,
[Note] the ADB command may not be recognized at the command prompt. Go to the C: \ Android-SDK-Windows \ toolsdirectory and check
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service