There are three sizes after 2.0, 36*36/48*48/72*72, respectively.You will see that different directories of drawable-hdpi/drawable-ldpi/drawable-mdpi are used to store icons of different sizes in androidmanifest. in XML, you only need to write @
There are two ways to reuse Android projects. One is to export a project into a jar package for third-party calls; the other is to set the project to a library project for Android projects.
1. Export a project to a jar package
Practice: In
Sometimes you need to call an activity in another APK in one APK. For example, you need to call testactivity in apk B in APK.
One way is to use the same user ID in apk a and apk B, that is, the androidmanifest of the two APK. in XML, add the
1. Get the bash Source:
$ Wget-C http://ftp.gnu.org/gnu/bash/bash-4.1.tar.gz
$ Tar zxvf bash-4.1.tar.gz
2. Download the arm toolkit, e.g. sourceryG ++ lite 2008q1-126Arm GNU/Linux
$ Wget-C
Use the image tool to edit the desired PNG, save it as logo.png
Run the following command in the command where logo.png is located:
Use the convert command provided by ImageMagick to convert the raw format.Convert-depth 8 logo.png RGB: logo.
Android: gravity is used to set the layout of the control's own content in the control, for example, setting a button control
Android: gravity = "center" indicates that the text in the button is displayed in the center of the button.
Android:
When developing software, the software may need to determine whether the user's mobile phone can be connected to the Internet. The following is a simple method of judgment:
Connectivitymanager cwjmanager = (connectivitymanager) getsystemservice
Make UDC & Android ADB gadget driver work
1. Open the config menu, Enable USB Gadget support and choose PXA27X UDC driver support and Android ADB gadget driver support.
IfYou don't have PXA27X item appeared in the menu, copy pxa27x_udc.c
The gallery component is mainly used to display the image list horizontally. The gallery component can only display the specified image in a limited manner. That is to say, if 10 images are specified for the gallery component, when the gallery
Dip:Device Independent pixels (device independent pixels). Different devices have different display effects. This is related to the hardware of the device. We recommend that you use this feature to support WVGA, hvga, and qvga, without relying on
What if you need to call the system's native management application interface when writing Android applications? I have met in a project, and I have not found a ready-made intent in this aspect, but it is implemented by looking at the source
The android virtual machine is a register-based Dalvik, and its maximum heap size is generally 16 Mb. However, Android uses the Java language. To a large extent, the memory mechanism of Android is equivalent to the memory mechanism of Java, if you
During Dalvik running, programmers cannot explicitly allocate and release the memory, so the memory leakage here is different from that in C and C ++. In your code, memory leakage is a reference to a class object that you no longer need. Sometimes a
1. to configure the development environment for Android, you must first configure JDK. There are many ways to install JDK in Ubuntu:(1) In ubuntu, you only need to execute:Sudo apt-Get install sun-java6-jdkNote: although this method is very simple,
Recently, my work has been relatively idle. In addition to using the company's iMac machine to learn iPhone, it is necessary to summarize the difficulties in previous projects. For the difficulties in Android development, first, the processing of
1. Download the open-source tool apktool
Http://code.google.com/p/android-apktool/
Apktool.jaris also on this site, for example, apktool1.4.1.tar.bz2.
Decompress the package and change it to. jar.
Then use the command line:
./Apktool D ~
The android program has a lot of activities, such as the main window A, and calls the sub-window B. If you finish () directly in B, the next display is. In B, how does one close the entire android application? I have summarized several simple
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