Siêu thị PDFTải ngay đi em, trời tối mất

Thư viện tri thức trực tuyến

Kho tài liệu với 50,000+ tài liệu học thuật

© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Lập trình Android: Gửi và nhận SMS ppt
MIỄN PHÍ
Số trang
8
Kích thước
151.1 KB
Định dạng
PDF
Lượt xem
1435

Lập trình Android: Gửi và nhận SMS ppt

Nội dung xem thử

Mô tả chi tiết

Trung tâm Tin học – ĐH KHTN

Gữi và nhận tin nhắn

Có nhiều ứng dụng đòi hỏi nhắn tin tự động cho 1 điện thoại khác hay nhận tin nhắn từ

1 điện thoại khác. Trong bài viết này mình sẽ làm 1 ứng dụng dùng để nhắn tin và 1

ứng dụng dùng để đọc bất cứ tin nhắn nào nhắn đến máy mình.

+ Ứng dụng nhắn tin làm theo các bước sau:

1/ Tạo Project :

Project name: TelephonyDemo

Build Target: Android 2.3.3

Application name: TelephonyDemo

Package name: com.dac.TelephonyDemo

Create Activity: TelephonyDemo

2/ Trong file main.xml các bạn thiết kế như sau:

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

android:orientation="vertical" android:layout_width="fill_parent"

android:layout_height="fill_parent">

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

android:orientation="horizontal" android:layout_width="fill_parent"

android:layout_height="wrap_content">

<TextView android:layout_width="wrap_content"

android:layout_height="wrap_content" android:text="Destination

Address:" />

<EditText android:id="@+id/addrEditText"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:phoneNumber="true" android:text="" />

</LinearLayout>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

android:orientation="vertical" android:layout_width="fill_parent"

Lập trình Android – http://laptrinhdidong.vn Page 1

Tải ngay đi em, còn do dự, trời tối mất!