Android Address Book Management 3 short message acquisition and Sending Short Messages
The first two blogs respectively talked about how to obtain contacts and call records. This topic describes how to get short messages. Short Messages are a difficult point in communication management, because SMS involves two parts: Short Message session and text message details, and the text message data volume is large, you can use AsyncQueryHandler framework to q
);
}
[Java]View plaincopy
Private void showNotify (){
Notification notice = new Notification ();
Notice. icon = R. drawable. icon;
Notice. tickerText = "you have a new message ";
Notice. defaults = Notification. DEFAULT_SOUND;
Notice. when = 10L;
// After a delay of 100 milliseconds, the system vibrate for 250 milliseconds. After a pause of 100 milliseconds, the system then shakes for 500 milliseconds.
// Notice. vibrate = new long [] {100,250,100,500}; error?
// Notice. setLatestEv
To use the SMS service, you must add the SMS Service permission to AndroidManifest. xml.AndroidManifest. xmlPackage com. sms;Import java. util. List;Import android. app. Activity;Import android. app. PendingIntent;Import android. content. Intent;Import android. OS. Bundle;Import an
String getoriginatingaddress ()
Returns the caller address of the SMS information as string, or null if unavailable.
Public String Getmessagebody ()
Returns the body of the message as a string if it exists and is text-based.
Message Manager: Smsmanager
1. Android.telephony.gsm.SmsManager should be used before Android 2.0Afterwards should use Android.telephony.SmsManager;
2). Get the system default SM
Android integrates the call and text messaging functions, which can be called only,
Main. xml
[Html] Android: layout_width = "fill_parent"Android: layout_height = "fill_parent">Android: id = "@ + id/textView"Android: layout_width = "wrap_content"
Figure Description: Moving, backup after the launch of Android virtual machine appears
Solution to the problem of panic:could not open D:\java2\android\android-sdk-windows\.android\avd\test.ini
A few days ago, I am sorting some files, the previously installed on the Android
Android practice-SMS sender and android SMS sending
First, design the interface
If you want to enlarge the input content box
Configurable
Android: lines = "6"
Then add the button.
Complete code:
The interface is as follows:
An error is reported after you click send. The permission is not set.
Create another simulator avd2.3 (low version and fast running)
S
name of GSM is: Global System for Mobile Communications. The Chinese language is the global mobile communication system, also known as "global communication". It is a European mobile communication technology standard and the second generation of mobile communication technology, the development goal is to allow users to use a mobile phone network standard across the world, so that users can use a mobile phone all over the world. Currently, China Mobile and China Unicom each have a GSM network, w
Use your Android phone for mini text messaging
1. Android httpserver and http debugging
Android http server: httpcore
PC http client: httpdebug
2. Text message sending
Android. telephony. SmsManager package
3. Source Code:
Package com. example. httpservertest; import jav
Data storage and interface display based on Android Application Development (I): android Application DevelopmentDirectory structure of the Android Project
Activity: interface displayed when an application is opened
Src: project code
R. java: Resource id of all resource files in the project
Android. jar:
The example of this article describes the Android SMS function code, which is a very common important function in the development of Android programs. Share for everyone to use for reference. The specific methods are as follows:
Send SMS public
void Sendmsg () {
String content = Edtsend.gettext (). toString ();
Smsmanager
1. What Android is a software stack for mobile devices,includes a complete operating system, middleware, key applications, the underlying Linux kernel, security management, memory management, process management, power management, hardware drivers2. Dalvik VM and JVM comparisons3 . Common adb directives platform-tools/adb.exeadb.exe:android Debug Bridge Android Debug Bridges adb devices: List so connected de
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.