In android Application Development, preferences, which are used as the configuration environment, are widely used. I will introduce the usage of SharedPreferences in android in detail. Let's take a look at the effect of the configuration
Note: this series of articles focuses on instance analysis and can be run directly after completing the steps.
Example: Add two integers and display the result.
1. Create an Android project.
2. Edit res/layout/main. xml. Design interface
There are several methods to communicate with the server on the Android end: 1. Socket Communication 2. WCF communication 3. WebService communication. Because it is very simple to publish WebService in ASP.net, we choose to use WebService for
During this time, I saw many people use this image download class for listview (for example, simulating the Sina client). I don't know which kind of class was written by anyone, I took over other people when I used this class. At the beginning, I
1. MediaPlayer is used for audio and video playback. To use MediaPlayer for video/audio playback, follow these steps:
A. Generate a MediaPlayer object. Use different generation methods based on the playback file (refer to MediaPlayer API );
B.
If SetContentView (new HellwView (this) is used all the time, it seems that there is always something missing, and the accessibility of defining components using XML in Android is lost, this is quite unpleasant. In this section, we will see a
The following section describes how android and javascript call each other. In this way, the UI is much simpler to design, and the UI can also be designed to be cross-platform. Now there are a lot of front-end web app frameworks, such as sencha
The buttons in the graphic interface are the most common controls. The program structure of the Android response buttons is roughly divided into the following two types:
(1) button Implementation Method for sampling anonymous internal classes:
The
Recently, I was busy with some ui special effects. I thought this was not something we developed, but it was something designers should manage. A recent headache, there is no way to do it. I still have to do it slowly. I have a sense of
Previous: http://www.bkjia.com/kf/201112/115299.htmlSave activity status
In the "acitume lifecycle" section, it is mentioned that when pause and stop are performed, the activity status is kept in the memory. When resume is executed, it starts
After multimedia files are parsed, you need to find the appropriate codec according to mime. 2.3 of the system has two methods: SoftwareCodec and omx node codec. The latter can be optimized with special hardware, the former seems to be relatively
SystemClock is provided in the android API. setCurrentTimeMillis () function to modify the system time. Unfortunately, no matter how you call this function, it is useless. No matter whether it is a simulator or a real machine, you will always get
For the java layer, the String class can be used to convert various encodings. There are no open tools available under the ndk, but icu4c can be used.
ICU4C is the C language implementation version of IBM's International Development component ICU.
Client IP addresses are often used when interacting with servers. Of course, on the server side, you can get the requested ip address. on the mobile phone side, how can you get your own ip address? See the following functions:
[Java] public static
Android provides multiple implementation methods for ListView to make the displayed content more beautiful through custom display layout, but we will find such a problem. When we operate ListView, if you do not use the upper and lower buttons on
The specific configuration process will not be redundant. A large number of searches are made online. Mainly: 1) download Android NDK; 2) install Cygwin; 3) configure the environment variable of Android NDK in Cygwin. To put it bluntly, it is to map
When an application component starts running and no other components are running, the system starts a new Linux Process for the application, which has only one thread. by default, all components of an application run in one process and thread (main
The previous response briefly describes the principle of inter-process transfer of class objects. before talking about Parcel, we should first talk about something: IBinder.What is IBinder? First, you must understand that Android remote calls (cross-
4 Binder Protocol
The basic format of the Binder protocol is (command + data). The ioctl (fd, cmd, arg) function is used for interaction. The command is carried by the cmd parameter, and the data is carried by the arg parameter, which varies with
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