Cold wind
Since the SOCKET is used to connect the computer on the network, there are two parts:
First, the Client on Android
Second, the Server on the PC
The implementation code above Android is as follows:
Package Hello. MySocket;Import java. io.
1. Download NDK r6 and FFmpeg 0.8.1
Android NDK r6
FFmpeg 0.8.1
2. Extract
Extract the android-ndk-r6-linux-x86.tar.bz2 to the/home/pekall/opt directory and add the ndk path to the path environment variable
Decompress the ffmpeg-0.8.1.tar.gz to
Android1. First understand some terms in the xml fileXml Code Li Ming 23 Li Quan 25
The labels and content in xml can be called nodes, and the persons person name age in xml are called elements ). the values like Li Ming 25 are called text nodes.
Sqlite3 can be used in simulators. In most cases, sqlite3 is not available on a real machine. If sqlite3 can be implanted on a mobile phone, the debugging program will get twice the result with half the effort.The method is as follows: 1. Find a
We can send data to the server in the form of Request Parameters. However, when the data size is too large, this method is unavailable. At this time, we should send data in a stream mode, in the following example, the content of an xml file is
Create an Android Project named icationicationiconcount.First, modify AndroidManifest. xml and add the permission because we want to read the contact.Modify main. xml as follows. Here we define an ImageView. We have the courage to preview the
Main Structure of sms:_ Id => short message number, for example, 100Thread_id => the dialog number, for example, 100Address => sender address, mobile phone number. For example, + 8613811810000Person => sender. A number is returned, which is the
Android code obfuscation1. proguard. cfg. This is the proguard script required for obfuscation. The Code is as follows: View plain-Optimizationpasses 5-Dontusemixedcaseclassnames-Dontskipnonpubliclibraryclasses-Dontpreverify-Verbose-Optimizations!
1. when one ActivityA enters another ActivityB, the wait dialog box is displayed, indicating that the second Activity will be entered. When we press the return key, the ActivityB will be returned to ActiviyA, if ActivityA directly creates a
Create a Content Provider
The content provider Manages access to the central data warehouse. You implement a provider that implements one or more classes in an Android application, and adds some elements in the manifest file. You implement a
We know that the Android mobile phone operating system uses the Linux kernel, and the highest system permission in Linux is Root, which is similar to the Administrator privilege in Windows, that is, the highest privilege in the operating
[Java]Import java. util. List;Import java. util. Map;Import android. content. Context;Import android. content. SharedPreferences; /*** Tool for storing configuration information * Note: The data types that can be read include- boolean, int, float,
Deleting redundant resources can speed up compilation and operation.
This program is modified using http://code.google.com/p/android-unused-resources/to Add the delete function.
Running Method: java-jar android_unused_resources_advance.jar
Today we will introduce # afinal # To operate the android database sqlite.
# Afinal # is an android orm and ioc quick development framework, which includes four functions: Space id binding and event binding; display of network images (including a
Work with attachments
When a user connects a USB attachment to an Android device, the Android system can determine whether your application is interested in the attachment. If you are interested, you can establish a communication with the desired
I. propose requirements
Data in Applications A, B, and C must be shared. Therefore, content provider ContentProvider is defined in application B. application A modifies data in application B and inserts A data entry. In this case, the C
Android Application plug-in development solution 1. The actual requirements are generally described. After an Android Application is developed to a certain stage, more and more functional modules will be available, and the APK installation package
Without a doubt, Json is the most popular data exchange format nowadays. Thanks to its ease of use, json has never been systematically learned about json, so I want to sort out json-related learning content. Json is a lightweight exchange format
When the android init process is initialized, in addition to some necessary initialization of the system, it is to start the service. The service is defined in the init script, so it is necessary to understand how to process the service in
In android project development, there will be real conflicts between the later feature expansion enhancement and the main program code change, that is, the flexibility of the program. The linux platform's security mechanism, coupled with the special
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