1

I am new to android, i want to as start an activity when i receive an sms on a particular port on android phone, my questions are:

Q1: how can i receive sms on a specific port?

Q2: how can i start an activity (UI) after receiving and parsing the sms?

RAM
  • 2,413
  • 1
  • 21
  • 33
Wasif Tanveer
  • 139
  • 3
  • 19
  • Something like this should be what your'e looking for: http://stackoverflow.com/questions/4117701/android-sms-broadcast-receiver – Fredrik Leijon Apr 08 '11 at 11:36
  • Thank you Fredrick, but this only satisfies my "Q1" how can i launch an activity that contains a UI after receiving the sms? – Wasif Tanveer Apr 08 '11 at 12:19

1 Answers1

1

This can be done with an IntentReceiver.

Here's a good article http://www.anddev.org/recognize-react_on_incoming_sms-t295.html

Jim Blackler
  • 22,946
  • 12
  • 85
  • 101