Compile and package the android project ant compilation and package the android project in eclipse. If the project is relatively large, it will be slow. Therefore, you can download the ant tool to compile and package the ant environment
The action bar was introduced after android3.0, mainly replacing the menu and tittle bar before 3.0. The action bar function cannot be used before 3.0. The custom action bar is introduced here. The custom action bar does not fully implement the
Android menus play a navigation role in mobile apps. The author summarizes five commonly used menus.1. Menu
Some time ago, it was quite popular and I first saw it in the dolphin browser. I was the first to use the left and right menu. I heard it was
Android Developers sometimes need to start another application in one application. For example, launcher loads the list of all installed programs and can start another application when you click the icon.Generally, after knowing the package name and
This simple example demonstrates how to use Java to transfer files between the client and the server.
Server Source Code:Import java.net. *; Import Java. io. *; public class fileserver { Public static void main (string [] ARGs) throwsioexception {
Vertical text scrolling
[Function]
In previous articles, I wrote how to scroll horizontally. Now let's talk about vertical scrolling.
[Principle]
1. Set the height of the scrollview control to a value.
2. How to scroll the display: scrollview.
1. Customize the activity display style
First, create the colors. xml file under Res/Values and write:
#9000
This value sets the transparency of the entire interface. To see the effect, it is now set to about 56% (9/16.
Create styles. xml
There are many odex files in the android Rom. What is the role of this odex file relative to the DEX file in the APK? If you observe carefully, you will find that the file names correspond one by one, and the corresponding APK files do not contain
Install
1. Install the Java environment first. JDK/JRE will do all the work. Skip the steps after downloading and installing the environment on the official website (JDK/JRE 1.6 is recommended)
2.download apktool.jarand the relevant files. Here,
Manual packaging process:
1. decompile APKApktool D qq.apk qq2. You can modify the image file information in the QQ folder and package it into an APK file. apktool B QQ qq.apk 3. Sign the file (you need to create a certificate by yourself, you
Custom View
Although the android framework provides a lot of interaction with users and can display views of various data, sometimes the basic view controls built in Android cannot meet some special requirements, in this case, we need to customize
Some time ago, when I made a demo, I needed to determine the network connection status of the machine and set up the network. I found the answer to the problem through checking the information.
1. Determine network conditions
Private Boolean
Collection of some small Android feature sets
This prevents our applications from appearing in the latest taskbar (Note: it is not the task manager ).
Android: excludefromrecents = "true"
Obtain all home applications installed on your mobile
To implement a simple custom view (excluding processing users' touch events), it usually takes only three steps.
1. inherit from a view (which can be a more specific view implemented by Android) and add the required Constructor (this is
Read http://blog.csdn.net/hmg25/article/details/8100896 before reading this article
What is incremental upgrade? To put it simply, when the application version is updated, the usual practice is to re-download the new version to overwrite the old
Inflater indicates expansion. In Android, it indicates expansion.
Layoutinflater is similar to findviewbyid (). The difference is that layoutinflater is used to find and instantiate an XML layout file in the layout folder! Findviewbyid () is used to
Because the space of the seekbar and ratingbar controls is relatively simple, code is directly pasted here.
Use of seekbar:
Content of the Main. xml file:
Android: Orientation = "vertical"Android: layout_width = "fill_parent"Android: layout_height =
This section involves two classes: pendingintent and remoteviews.
Pendingintent:
The pendingintent class encapsulates intent, indicating that an encapsulated intent is passed from one object to another. When another object receives an event, intent
The most important part of using the autocompletetextview control is to use the arrayadapter adapter to provide content to him.
In this example, there are two XML layout files: one is the main. xml file, which contains the textview and
Before using tabhost, let's take a simple look at its source code.
Main variables include:
Private tabwidget mtabwidget;
Private framelayout mtabcontent;
Private list mtabspecs = new arraylist (2 );
That is to say, our tabhost must have these three
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