1. Create AVDIn development after android sdk 1.5, at least one AVD must be created. Each AVD simulates a virtual device to run Android applications. Whether you create a new avd under eclipse or command line, the system automatically creates one
In many ways, every Android application is alive in their own world.
Application basics-Application Fundamentals
Android applications use java as the development language. With the tools provided by the Android SDK, You can package the data and
Build an open-source development environment
In the two development environments described earlier, Flash Professional CS5 and Flash Builder are both commercial products and are not suitable for open-source developers. The open-source technology on
1 Introduction to mobile game development
The essence of a game is to constantly display and update images on the screen, but not to update images randomly, but to control Images Based on program logic. A complete game requires a wide range of
Do not use setImageBitmap, setImageResource, or BitmapFactory. decodeResource to set a large image. After decode is completed, these functions are implemented through the createBitmap on the java layer and consume more memory.
Therefore, use
Use Handler to refresh the interface
Instantiate a Handler object and rewrite the handleMessage method to call invalidate () to refresh the interface. The online program sends the interface to update the message through sendMessage.
// Enable
The following is an asynchronous download class:
/**
* User: Tom
* Date: 13-5-13
* Time: PM
*/
Public class AsnycImageLoader {
// Define a HashMap to store the cached Image key as String Value as a weak referenced resource file
The R. java file is automatically generated. However, when you write an error to an xml file, R. java does not automatically generate the corresponding value. At this time, we will get used to clean this project. At this time, we will suddenly find
Method: setInputType (InputType. TYPE_NULL) of the EditText instance is called in onCreate (). The Android: inputType = "?? ",?? You can.
/** Init date EditText. */
ANDROID debugging technology:
1) Ps command
Ls-l/proc/27/
The cat/proc/27/cmdline # cmdline file indicates the command line of the process.
The cat/proc/27/status # status file indicates that information about the process is obtained. # Stat
1. sample projects provided by the Android team
If you do not start by learning the sample code provided by the Android SDK, there may be no better way to master the development on the Android framework. The core development team of Android provides
Currently, smart technology is everywhere, and developers have to design more convenient mobile applications for smartphone users. I am sure that there will be the latest and most special mobile apps in 2013. In fact, there is always a mobile app
I. Landscape and landscape settings
1. android
In the AndroidManifest. xml file,
ScreenOrientation = "landscape" is a landscape screen,
ScreenOrientation = "portrait" is a portrait Screen
2. iOS
-(NSUInteger)
1. What can it cache?Common strings, json, serialized java objects, and byte numbers.
2. What are its characteristics?
Main features:
1: Light, light to only one JAVA file.
2: configurable. You can configure the cache path, cache size, and cache
First look at a set of simple code
public class SampleActivity extends Activity {
private final Handler mHandler = new Handler() {
@Override
public void handleMessage(Message msg) {
// ...
}
}
}
For example, most of the images displayed in the System Image Library are taken by mobile phone cameras. The resolution of these images is much higher than that of our mobile phone screen. We should know that all the applications we write have
A few days ago, I encountered a BUG in the project:
We used WebView In the Android project to open an online banking payment url. When we click "pay", they will pop up an inquiry box using js on the webpage. The js Code is as follows:
For some Android projects, the main cause of performance bottleneck is the memory management mechanism of Android. Currently, mobile phone manufacturers are stingy with RAM and are very sensitive to the impact of RAM on the Performance of software
When sorting out the previous articles, a friend proposed to write about the performance optimization of ListView. This problem was also asked by others during the interview ..... Today, my pony took this opportunity to sort out a lot of similar
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.