Re: [mono-android] Handle incoming SMS

2013-03-26 Thread johnbowick
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

Re: [mono-android] Handle incoming SMS

2013-03-05 Thread Sait
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

Re: [mono-android] Handle incoming SMS

2013-03-05 Thread Sait
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.

Re: [mono-android] Handle incoming SMS

2012-09-10 Thread Sayed Arian Kooshesh
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?

Re: [mono-android] Handle incoming SMS

2012-09-03 Thread Tomasz Cielecki
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

Re: [mono-android] Handle incoming SMS

2012-08-29 Thread sorniels
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

Re: [mono-android] Handle incoming SMS

2012-08-24 Thread Tomasz Cielecki
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

[mono-android] Handle incoming SMS

2012-08-24 Thread Александр
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