I want to install an android development environment over the past few days.ProgramRunning in a cell phone, configuring an environment, tangle, the SDK cannot find the JDK, which is not identified. I remember that this problem did not occur during
we all know that a canvas is required for plotting, and then graphics is used to draw the desired pattern. Yes, it is similar in Android. You can get its canvas from a bitmap and draw it. You can also customize a view and use its canvas. When there
1. First install eclipse
Http://www.eclipse.org/downloads/
There are many types of compressed packages by default. We only need to download Eclipse IDE for Java developers
Be sure to select the correct version for Linux, Which is 32-bit or 64-bit.
Add the phone call status to the Android phone and use phonestatelistener to listen.
Telephonymanager = (telephonymanager) context. getsystemservice (telephony_service); // start to listen to phonestatelistener phonelistener = new
Android new vendor ID enable
When we develop the Android, maybe we will change the USB vendor ID and product ID according the chip provider. after we change it, the driver provided by Google won't work with it. so, we need some other
The AVD device file is saved in a directory named. Android. By default, this directory is stored in the root directory of the user's document, such as C:/users/Administrator/documents/. Android/
1. Because of different systems, the directory may
1. Add the ksoap2-android-assembly-3.0.0-jar-with-dependencies.jar package to the libs directory of the android Project2. Web service tool class webservicehelper
Import Java. util. hashmap; import Java. util. map. entry; import Org.
Android interacts with the server. Sometimes, when the data volume is large, interactive data in XML format is required. Here, the server sends XML data to the android client for parsing.
On the server side, I use a third-party package of dom4j to
I. Key PointsGenerally, the title of an application is created in androidmanifest. if you want to add buttons, images, and other complex la S, you can use the following methods:When creating a window, you can set an XML layout to the title of the
7) run the compiled Android SDK on the simulator.
After compiling Android,
Emulator IN ~ /Android/out/host/linux-x86/bin,
Ramdisk. IMG, system. IMG, and userdata. IMG are ~ 1 In/Android/out/target/product/generic$ Cd ~
I. Key Points
How to use custom controls in layout (XML)
Ii. Example
1. function: implement a new browser control so that log information can be printed anywhere in the browser.
2. steps:
1) create a project
A) In eclipse, choose File> New>
XML is widely used in various development scenarios, and Android is no exception. As an important role in carrying data, reading and writing XML has become an important skill in Android development.
In Android, common XML parsers are Dom parsers,
The following describes Android data storage. Android provides five data storage methods:1. sharedpreferences stores data;2. File storage data;3. SQLite database stores data;4. Use contentprovider to store data;5. network storage data;
Today I will
Controls are similar to the scrolling broadcast bar on a webpage.
Image 1:
Image 2:
For example, implement self-switching of multiple messages in the scroll bar;
Click to obtain the specific content.
Simple implementation code:
Public class
My environment is dedicated to 12.04 ndk version is r8c
The error log is as follows:
/Home/Eddy/Android-SDK/android-ndk-r8c/build/gmsl/_ gmsl: 512: *** non-numeric second argument to 'wordlist' function: ''. Stop.
The solution is as follows:
Implementation:
Implementation Method:
The inherited View Class re-draws a circle by itself, adds the custom inherited View class to the current activity, and adds an ontouchlitener event to the custom view control.
Custom components inherit
In Android, the available storage methods include sharedpreferences, file storage, SQLite database, content provider, and network.
To learn sharedpreferences:
Sometimes, applications need to save a small amount of data, and the data format is very
1. Screen switching refers to the switching on the screen of the same activity. The longest case is that there are multiple pages in a framelayout, such as a system setting page; a personalized settings page. 2. Introduction to viewfilpper
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.