for example, the number of text messages or news messages is often on the image. The implementation method is as follows. You can adjust the number based on different image sizes.
Private bitmap generatenumbericon (INT resid, int newscount) {bitmap
Android tools:
1. Android APK ToolA tool used to reconstruct an APK. You can decompress various APK packages to view the complete resources. Currently, you cannot view the source code.
Web: http://code.google.com/p/android-apktool/
2.
Android history
Use the Eclipse IDE development environment.
First download the required software. 1, JDK: http://java.SUN.com/javase/downloads/index.JSP version: 1.6 u222, Eclipse: http://download.eclipse.org/eclipse/downloads/#:3.5.2 for Java
Real-time sound effects, as the name implies, are short and fast sound effects. They are suitable for audio files with short playback time and rapid response. For example, when typing an input method, the "cool" sound is like this, the sound of
1. Error:Conversion to Dalvik format failed with error 1
Console errors are the same as above. No errors are found in the code, but they cannot be run.
Solution: Project --> properties --> JAVA build path --> libraries --> Delete Android. Jar (this
Sometimes, when using listview to display some data, you want to add a footer at the end of the list item (Note: it is not at the lowest end of the screen). The footer will automatically follow as the number of listview increases, when the number of
It seems simple and difficult to understand. In fact, this baseline is equivalent to the line below when writing text in the notebook. The example of baseline in relativelayout is as follows:
For example, add two adjacent textviews and a larger
I found that ubuntu12.04 could not be connected to Xiaomi development, and ADB devices could not see the device! It took me one morning to complete the operation!
The Xiaomi phone uses USB to connect to the Ubuntu 12.04 system. Run the following
For example, in the MP3 player's music playing list, click an item to start playing the music (onitemclicklistener), and press it to enter the editing mode (not to jump to another page, still on the same page ), at this time, onitemlongclicklistener
Sometimes a checkbox needs to be built in the listview of the project for the user to choose, select multiple, delete, and so on.
First look at the source code
Dataitem. Java
package com.example.checkboxdemo;public class DataItem {private String
Sometimes you need to display the string with HTML tags in textview and want to automatically convert the HTML tag to a clickable link.
You can handle the problem as follows:
Charsequence richtext = html. fromhtml (Message );Mtext. setmovementmethod
1. framelayout framework Layout
All soft controls can only be listed in the upper left corner, and complex la s are not allowed.
2. linelayout
Linear Layout
You can set its vertical or horizontal attribute values to arrange all elements. All
Despite this, there seems to be no good way: Android devices are embedded devices. Modern handheld devices are more like phones than computers in your hands. However, even the "fastest" handheld device cannot keep up with an ordinary desktop
It has been more than a month of application development with Android. It is easy to understand the use of controls. You can configure the layout through XML, create corresponding controls in the main program, and set listeners, after completing
1. install and configure the Java environmentDetailed steps for installing and configuring Ubuntu Java
1. Download JDKDownload connection http://java.sun.com/javase/downloads/index.jsp
Select jdk-6u24-linux-i586.bin download, I downloaded the latest
1. install Java 6
Install JRE/JDKSudo apt-Get install sun-java6-bin sun-java6-jre sun-java6-jdk
After you use this command to install it, it is installed on/usr/lib/JVM/by default/ Directory, take me as an example. Here I am
/Usr/lib/JVM/Java-6-sun-1
Learning Web site: http://www.zhouxing.org/android-api-video.htm
Video Introduction
This video is a revolutionary reform course, instead of a traditional teaching video. Prepared by the Innovation Office for 30 lectures
Android is an operating system designed for mobile terminals. It provides security, process management, memory management, network and driver models based on the Linux 2.6 kernel.
An android application can be installed on a mobile terminal of the
31. View and surfaceview
In Android games, the display class is mainly used in addition to the control class. In j2s, we use display and canvas to implement the display class. In Google Android, the display class is used, display and game logic
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