I use this code, as a BroadcastReceiver:
public void onReceive(Context context, Intent intent)
{
//this stops notifications to others
this.abortBroadcast();
//---get the SMS message passed in---
Bundle bundle = intent.getExtras();
SmsMessage[] msgs = null;
String str
i want to get messages from broadcastreceiver into my activity .any thing i
run thread or a function doesn't fire like you said ,there are other
examples in java but doesnt work in mono.
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Handle-incoming-SMS-tp5711524
sorniels you dont have to add anything i tried it it fires but how do you
get message from an activity?
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Handle-incoming-SMS-tp5711524p5712978.html
Sent from the Mono for Android mailing list archive at Nabble.com.
I thought this,
"
[IntentFilter(new[] { "android.provider.Telephony.
SMS_RECEIVED" })]
"
was the same as registering the recvr in manifest, which makes it where you
don't have to call register recvr?
Second, do you have any other sms recving apps on the emulator that could
be suppressing it?
The filters are applied before your implementation of the
TextMessageListener, which are specified in the [] brackets:
[BroadcastReceiver(Enabled = true)]
[IntentFilter(new[] { "android.provider.Telephony.SMS_RECEIVED" })]
Therefore you should not need to register your listener in you
activ
This doesn't work for me. I have the following:
[BroadcastReceiver(Enabled = true)]
[IntentFilter(new[] { "android.provider.Telephony.SMS_RECEIVED" })]
public class TextMessageListener : BroadcastReceiver
{
public static readonly string IntentAction =
"android.provider.Telepho
You have to create a broadcast receiver which does this.
I made a quick sample for you from some of the old threads on the
list. ChrisNTR was so kind to help someone else before with this and
made this gist: https://gist.github.com/cc8eec0c5b35fffc05cb
The full BroadcastReceiver can be seen below
How can i handle and read incoming SMS message? On android.
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Handle-incoming-SMS-tp5711524.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodr