Case reproduction:Modify the Setting in the Android 4.0 source code. After adding a function, compile it in eng mode. Everything works, and then submit the code to the server. The next day, there was a bad news. The newly added functions of Setting
In Android development, non-UI threads cannot operate controls in the UI thread, that is, the UI is non-thread-safe.
As I said in the previous article:
It is non-UI secure, that is, it does not accept modification requests from non-UI threads.
The following uses EditText as an example,
On a tablet, the keyboard is displayed in full screen by default. The following attributes disable full screen display.
Xml method:
Android: id = "@ + id/editText1"
Android: layout_width =
It is troublesome to exit the program in Android, especially in multiple Activity programs. Before Android 2.2, you can exit the program using the following code:
Java code
[Java]ActivityManager am = (ActivityManager) getSystemService (Context.
Preface:
I have read a lot of blogs about andriod game development on CSDN and found that most of them are about one aspect of knowledge. I don't have a complete development tutorial.
So I wrote a series of blogs to fully describe the entire game
In JB2, video trimming is added. Currently, google does not support video trimming in non-mp4 format by default. In the image library, the toast prompt is displayed, indicating that the video cannot be edited due to an error ". How to remove the
We need to deal with the update related issues used by some applications. We learned that android build system will use open-source bsdiff to update packages. this article analyzes OTA update in the android system.
First, let's take a look at the
How simple is it? Look, it just shows the map:If you want to write an android Google map application, it is more difficult to prepare it than to write other applications. Because:
The android Google map API is not open-source and free. It is
In the previous chapter, we did not remove the title bar and status bar. If the title bar and status bar are not displayed in the game, it is very easy to remove them, add the following two sentences to the onCreate method of
1. mime type descriptionMulti-purpose Internet Mail Extension (MIME, Multipurpose Internet Mail Extensions) is an Internet standard that extends the email standard, it supports mail messages in multiple formats, such as non-ASCII characters and
How to restore the previous ROM and system backup after the android flash machine is used. This tutorial describes how to restore the original ROM and system backup after the flash machine is used.
Many people see a lot of new rom, including the new
The Android system includes OpenGL (Open Graphics Library), which provides high-performance support for 2D and 3D Graphics, especially OpenGL ES APIs. OpenGL is a cross-platform graphics API that specifies a standard software interface for 3D
I recently made a music player and needed to add mp3 files to the SD card. The following describes how to use sdcard.The Android simulator allows us to use the disk image in fat32 format as the SD card simulation:All of the following operations are
Windows 7 64-bit, re-install Android SDK, The result encountered a problem:
When checking whether the system has installed JDK, the prompt is always: Java SE Development Kit (JDK) not found.Error: Failed to find java version for 'C: \ windows \
Introduction: Android is a Linux-based operating system for mobile terminals. To meet its special needs as a mobile platform operating system, Google made a special design and optimization for it, so that the application is closed but not exited,
Android determines the network status and opens the Network Settings dialog box when there is no network.
When using Android to connect to the network, it is not always possible to connect to the network. At this time, we 'd better judge the network
As we all know, the Intent is used to call other programs in Android for related processing. Of course, Email is no exception.In Android, there are three types of Intent for calling Email:Intent. ACTION_SENDTO send without attachmentIntent.
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.