To modify the package name of the Android appCodeCan be installed on a mobile phone ....
(In order to save the interference and inconvenience caused by. SVN, we strongly recommend that you use the pure source code [No SVN ])
In eclipse, we
First, project-> clean; check whether the problem is solved. If not, open your default. in the properties file, modify the target value in one sentence. Target = Android-7 (Version 2.1) or target = Android-3 (version 1.5), of course,
1. Set the Android phone to USB debugging mode. Step: menu ---> Settings ---> Application
Program ---> Development, select USB debugging]
2. Use USB to connect your phone and computer, and make sure the connection is successful. Step: Run c: \
The log is as follows:
04-04 18:16:32.774: E/dalvikvm-heap(30873): 10036224-byte external allocation too large for this process.04-04 18:16:32.805: E/GraphicsJNI(30873): VM won't let us allocate 10036224 bytes04-04 18:16:32.813: D/dalvikvm(30873):
Original article address:
Http://bbs.chinaunix.net/thread-1926876-1-1.html
In some cases, we need to download images from the remote server on the Android device for display. Here we have two better methods to download remote images. Method 1: Ask
A pop-up menu is a mode menu docked on a view. If there is space below the view object, the pop-up menu will be displayed below the docked object, otherwise it will be displayed above. This is very useful:
1. Provide an overflow menu for operations
When an APK application is started, Android starts a main thread (ui thread). Because the main thread is non-thread safe, when we need to operate these time-consuming operations such as big data or networking in the main thread, the display of the
In Android development, special character filtering and character length restrictions in edittext are frequently required. Due to compatibility issues between different Android versions and different mobile phone support situations, some device
Many software programs share messages. Many of them support text message sharing. In fact, they call the system to send text messages. Code implementation is very simple:
/*** Send SMS * @ Param smsbody */private void sendsms (string smsbody)
How to make the android simulator use a simulated SD card. After installing the android simulator, you want to play a piece of music, but you will find the no SD card error. In fact, the android simulator allows you to use a local file to simulate
Textswitcher is used to make the label on the screen produce an animated effect. When the settext () method is called, textswitcher disappears the current text content and displays the new text content in the form of an animation.
1. Common
A problem occurs today. The video cannot be centered.
Assign the entire screen to the videoview when setting the layout of the videoview.
However, during video playback, videos with different aspect ratios are not played to the center.
With the
I have talk about handler in an article before. http://blog.csdn.net/elfylin/article/details/6085042.
Here mainly I want to discuss something between hander and message.
1. Message has some frequently used members as below:
Int what; Message ID
Int
For code analysis on recovery, see another article
AndroidRecovery Pipeline Code Analysis
Make an upgrade program that supports SD card, USB flash drive, and Flash.
This upgrade application must be used together with the recovery
Do you really want the text in your textview to be displayed as a link when you encounter a phone number or webpage address? Then, when we click it, the corresponding phone or browser application will be displayed?
If your answer is yes, let's take
First, describe the content we want to implement. We hope to click the button in one application to operate the music playing Function Applied in another process.
When we click "play", the system will remotely call a service provided by US (not the
How to run the android Simulator
1. view the versions currently supported
Android list targets
In the listed versions, remember the id value. This value is used in step 3.Ii. What is AVD?
AVD is short for Android virtual device. Android virtual
Android and frame-by-frame animation:
:
When we click the button, the image will not stop rotating, and when we click the button again, it will stop in the current status.
Activity Code:
Package cn.com. chenzheng_java.animation; Import android.
The display direction of the screen can be horizontal or vertical:
The following code automatically controls the length and width.
/*** * automatic vertical or horizontal la s based on the actual screen length and width */ Public void autochange ()
Edittextpreference:
:
This dialog box is displayed when you click Enter name on the homepage.
Code:
xmlns: Android = "http://schemas.android.com/apk/res/android" Android: Key = "edittext_screen" Android: title = "screen title" Android:
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