The text message files read in Android include
[Java]/*** All text messages*/Public static final String SMS_URI_ALL = "content: // sms /";/*** Inbox text message*/Public static final String SMS_URI_INBOX = "content: // sms/inbox ";/*** Send a text message to the sender*/Public static final String SMS_URI_SEND = "conten
extended media is inserted and mounted to "android. Intent. Action. media_mounted"
String media_removed_action broadcast: the extended media is removed. "Android. Intent. Action. media_removed"
String media_scanner_finished_action broadcast: a directory of the media that has been scanned. "android. Intent. Action. media_scanner_finished"
String media_scanner_sta
[Android] mobile guard mobile phones enable location for text message instructions, android guard
Location
Create a service package
Create a GPSService class that inherits the system's Service class
Register in the configuration file
Override the onCreate () method and call back when the service is created.
Override the onDestroy () method and call back when the
Android is referring to the Windows message loop mechanism to implement Android's own message loop.Android uses Looper, handler to implement the message loop mechanism, the Android message loop is for threads (each thread can have
"Android Development Art Exploration" reading notes (ix)--Four componentsNO1:The internal storage structure of Message Queuing MessageQueue is not a real queue, but rather a single-linked list of data structures to store message lists, because single-linked lists have advantages over insertions and deletionsNo2:ThreadLocal can store and provide data in different
Date, long type, such as 1346988516, you can set the date display format
Protocol
Protocol 0SMS_RPOTO SMS, 1MMS_PROTO MMS
Read
Whether to read 0 unread, 1 read
Status
SMS status-1 received, 0 complete, 64 pending, 128 failed
Type
SMS type 1 is received, and 2 is sent
Body
SMS content
Service_center
Number of the SMS service center, for example, + 8613800755500
Application
The Android operating system itself is a huge open-source software warehouse. Familiar with it, you can understand the design framework of the Android system and obtain efficient application programming methods. The source code analyzed in this article comes from Google's official AOSP source code 4.0.1 _ r1, And the Android version of the mobile phone is CM 4.2.
The message processing mechanism in Android consists of four parts: message, Handler, MessageQueue, and Looper, and MessageQueue encapsulated in Looper, we generally do not deal directly with MQ.First, LooperLooper literally means "circulator", which is designed to make a normal thread into a looper thread . The so-called Looper thread is the thread that loops wo
Horizontal evaluation of popular android message push! [Switch], android horizontalThis topic is nothing new. Most small and medium enterprises generally choose third-party services. However, there are already many companies and products that provide push services. How can we choose a service suitable for our own projects? What are the differences between them? I
The android asynchronous message processing thread, which has been in an infinite loop each time it reads a message from the message queue, then calls back the method of processing messages in the handler handlermessage. If the message queue is empty, the thread hangs, waits
The code for the message queues used in Android is in the directory \sources\android-22\android\os, mainly involving the following class files handler.java In this case, a message entity object looper.java is primarily used to listen for MessageQueue messages, which he s
Android uses content observer for text message eavesdropping and android observer
The principle of content observer for Android introduces some basic principles of content observer and provides a simple practice. This article goes on to build a small project.
Package com. wuyudong. smslistener; import java. io. file; i
Quote from Easyandroid Forum, original: http://www.easyandroid.com/bbs/viewthread.php?tid=33
1. The message mechanism to utilize the communication between Android threads
1.1.Message
The code is in the Frameworks\base\core\java\android\os\message.java.
Message.obtain function: There are several obtain functions,
, named c2000k, as the name implies, their goal is to maintain a single machine 2 million long connections. In the end, they used a multi-message loop, asynchronous, non-blocking model to achieve spikes of over 3 million long connections on a dual-core, 24G-memory server. Final Summary:because I recently used Java to do a PC, server, Android Instant messaging system (in plain imitation of QQ, behind the hop
Message, messagequeue, logoff, and handler in Android + Example 1. Several key concepts
1. messagequeue: a data structure. It is a message queue where messages are stored. Each thread can have at most one messagequeue data structure.
Messagequeue is not automatically created when a thread is created. A logoff object is usually used to manage the messagequeue of
Today, verification code is very common on Android clients. Register the application account information directly through the mobile account and the authentication code. Many applications are registered in this way. A brief introduction.
Android to get SMS verification code is relatively simple, through the mob official website provided by the SHARESDK, call the internal method, you can get to the text of
Android Message, MessageQueue, logoff, Handler (with example), messagequeueloading
I. Several key concepts
1. MessageQueue: a data structure. It is a message queue where messages are stored. Each thread can have at most one MessageQueue data structure. MessageQueue is not automatically created when a thread is created. A logoff object is usually used to manage th
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.