`
jakielong
  • 浏览: 231400 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

SMS Messaging in Android(接1)

阅读更多

就是它了!测试应用程序,按下F11。为每个Android模拟器部署应用程序。图7显示了Eclipse中当前运行的模拟器。你所需要做的就是选择每个模拟器并部署应用程序到各自上。

7 选择模拟器来部署应用程序

8显示了当你发送一个SMS消息给另一个模拟器实例时(端口号5556),目标模拟器接收到消息后会通过Toast类显示。

8 使用模拟器发送和接收SMS消息

小结

 

在这片文章,你已经看到如何在你的Android应用程序中发送和接收SMS消息。发送和接收SMS消息的能力在你构建非常复杂的应用程序时非常有用。一个例子,你可以构建一个追踪位置的应用程序,通过它,你可以发送一个秘密编码的SMS消息给设备,当设备接收到秘密SMS消息后,它会回复另一个SMS消息,包含着当前的地理位置(使用内置的GPS receiver)。是不是很酷?!

 

分享到:
评论

相关推荐

    Beginning Android 4 Application Development

    create rich user interfaces, and manage data Helps you work with SMS and messaging APIs, the Android SDK, and using location-based services Details how to package and publish your applications to the...

    Android代码-VoIP.ms SMS

    VoIP.ms SMS is an Android messaging app for VoIP.ms that seeks to replicate the aesthetic of Android Messages. Rationale A number of people use VoIP.ms as a cheaper alternative to subscribing to a ...

    The Android Developer‘s Cookbook 2nd Edition

    Storing data via SQLite and other methods* Integrating in-app billing using Google Play services* Managing push messaging with C2DM* Leveraging new components and structures for native Android ...

    Professional Android 4 Application Development 源代码

    Chapter 1: Hello, Android A Little Background What Android Isn't Android: An Open Platform for Mobile Development Native Android Applications Android SDK Features Introducing the Open Handset Alliance...

    Professional Android 4 Application Development

    1. **第1章:Hello, Android** - Android开发环境的搭建。 - 创建第一个Android应用程序的基本流程。 2. **第2章:Getting Started** - Android SDK及其工具的安装配置。 - 使用Eclipse或Android Studio进行...

    android Launcher3设置默认桌面应用

    category=android.intent.category.APP_MESSAGING;end" /> launcher:uri="sms:" /> launcher:uri="smsto:" /> launcher:uri="mms:" /> launcher:uri="mmsto:" /> <!-- All Apps --> ...

    Android 推送原理(Android Push Notification)详解

    Android推送原理,也被称为Android Push Notification,是一种在应用程序不运行时向用户传递信息的技术。它允许服务器端将数据推送到Android设备,即使应用在后台或完全关闭也能接收到通知。这种技术对于保持用户与...

Global site tag (gtag.js) - Google Analytics