Simulating SMS on Android Devices when developing

后端 未结 7 1562
不知归路
不知归路 2021-02-02 00:46

Is there a way to send an SMS from te DDMS in Eclipse to my Android phone. The emulator control is disabled when I\'m running my physical phone. I can only sent a SMS to the emu

7条回答
  •  清歌不尽
    2021-02-02 01:23

    The following few steps should get you up into simulating an incoming sms in an Android Emulator.

    Requirements:

    1.Make sure that you have the telnet client in you PC whether it is Windows or Linux.Google around on how to install one if it is not already installed on your PC.

    Steps To Emulating an incoming sms

    (a) open you CMD prompt and Enter the command:

    telnet

    For now I am Demonstrating using Windows 7 ,so you will get

    Welcome to Microsoft Telnet Client

    Escape Character is 'CTRL+]'

    Microsoft Telnet>

    (b)Assuming that your Emulator is already started.And while still on the CMD,type:

     o localhost 5554
    

    this should open a connection to the emulator.

    (c)To Emulate an incoming sms from a number say 0123456 type:

    sms send 0123456 Your Message
    

    You should be able to get the message in your android emulator inbox.Thats all Folks.

提交回复
热议问题