I have been using intellij idea for Android development, and I feel quite comfortable. The latest intellij idea 12 (What's New ?) Released, including many new features. I have selected a feature related to the android development framework for you
Android provides five data storage methods:
(1) files: Use fileinputstream and fileoutputstream to operate files.
(2) shared preferences: used to store data in the form of key-value pairs and save system configuration information.
(3) content
The framework layout is to organize controls in AndroidProgramIs one of the simplest layout types in the user interface.
The child view in the frame layout is always drawn to the upper left corner relative to the screen. All views added to this
In Android Application Development, various controls are often used and the background color is set for the control. It is necessary to color the control using different colors.
In the Android system, the codes of various colors are as follows:
// Set the color Public void setcolour (INT color) { CO = color; } // set the Border width Public void setborderwidth (INT width) { borderwidth = width; }
Specific implementation:
Package xiaosi. imageborder; Import android. app.
Displaymetrics Class-A Structured description of a display's general information, including its size, density, and character scaling ratio.
Public float density; // screen pixel density value. The density value indicates the number of display
For touch screens, the native messages are nothing more than pressing, lifting, and moving. We only need to simply reload ontouch or set the touch listener setontouchlistener for processing. However, to improve the user experience of our apps,
asynctask: asynchronous processing of tasks
In development Android The single-thread model principles must be observed for applications: Android UI Operations are not thread-safe and must be performed in UI In the thread. In a single-threaded
[Preface]We usually develop Android applicationsProgramGenerally, the integrated development environment of eclipse is used, so the generated APK has the signature permission for the debug version. However, if we want to release an application, if
This feature of android2.2 may be a good news for many transplant jobs and underlying developers.
Download the latest Android ndk and r4b
Each version of ndk has some changes, so it is easier for new users to use it. For many projects like me, I
Translation of services into Chinese is a service, and those familiar with Windows systems must be familiar with it. The service in Android is similar to the service function in windows, that is, an invisible process is executed in the background to
Finish is the activity class. It only applies to the activity. When finish () is called, the activity is pushed to the background, and the memory is not released immediately. The activity resources are not cleared; when system. when exit (0), the
From: goodcandle http://www.cnblogs.com/goodcandle/archive/2012/10/16/2672057.html
ProgramFramework
After more than 10 years of experience, I realized that the program framework really plays an important role in developing products. If there is
First, you mustGet the corresponding permissions in the middle of manifest. xml
Public class httpexampleactivity extends activity {Private Static final string debug_tag = "httpexample"; private edittext urltext; private textview; @
The establishment of the netbeans environment mainly depends on the nbandroid plug-in. Project address:
Http://www.nbandroid.org/p/installation.html
Development machine: Windows 7
IDE: netbeans 7.3
Step 1: Install the plug-in
Start netbeans and
I 've been in the garden for a long time. I 've been learning other people's ideas and technologies. Today I can't bear the loneliness anymore. Haha, a virgin post...
Just now, I have been developing Android for some time. The basic development
Last year, probably in May October, WinCE 6.0 R3 was released. I am very interested in QQ and flash components in R3. I immediately used a custom system to run on the simulator, and successfully ran QQ and flash. This made me very excited. I
ArticleDirectory
1. Use shared preferences:
2. Use file:
3. Network Space: (omitted)
4. SQLite database:
1. Use shared preferences:
Save Android applications in one sentenceProgramConfiguration information:
Save:
From: http://blog.csdn.net/guochunyang/article/details/6203232 The jsr172 specification is used to call WebService. It is easy to use the jsr172 specification of j2_m2. it is used to generate stub and add it to the Project for calling. After
The Content Provider in Android can share data among multiple applications with permission permits. Android also provides some major data types, such as audio, video, images, and private address book. Of course, if we want to make our application's
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