mpathma Member Licensed User Longtime User Aug 18, 2013 #1 Hi, I am struggling to get the SmsInterceptor working, I have been searching for few hours now and could not find working example. I noted some example posted by other but I could not get it working. My objective is to intercept define format of incoming SMS (only when my apps is running), if during my apps active, the message match my format, I need to stop it from going to InBox. My Apps will process it. Can anyone point in the right direction. (working example will be good start.... ) Thanks In Advance. M.Pathma
Hi, I am struggling to get the SmsInterceptor working, I have been searching for few hours now and could not find working example. I noted some example posted by other but I could not get it working. My objective is to intercept define format of incoming SMS (only when my apps is running), if during my apps active, the message match my format, I need to stop it from going to InBox. My Apps will process it. Can anyone point in the right direction. (working example will be good start.... ) Thanks In Advance. M.Pathma
Erel B4X founder Staff member Licensed User Longtime User Jun 23, 2014 #21 Starting from Android 4.4 only the default messaging app can mark a message as read. Upvote 0
F fricentric Member Licensed User Longtime User Jun 24, 2014 #22 i am using android 2.3 right now so that wont be a problem. So how do i get the sms id and how can i mark the sms as read using that sms id? Upvote 0
i am using android 2.3 right now so that wont be a problem. So how do i get the sms id and how can i mark the sms as read using that sms id?
Erel B4X founder Staff member Licensed User Longtime User Jun 24, 2014 #23 See this thread: http://www.b4x.com/android/forum/threads/mark-sms-as-read.27753 Upvote 0
F fricentric Member Licensed User Longtime User Jun 28, 2014 #24 Erel said: See this thread: http://www.b4x.com/android/forum/threads/mark-sms-as-read.27753 Click to expand... Is there no function like the one in the code which gets the incoming message smsin = r.RunMethod("getMessageBody") like this msg_id = r.RunMethod("getMessageId") ?? Upvote 0
Erel said: See this thread: http://www.b4x.com/android/forum/threads/mark-sms-as-read.27753 Click to expand... Is there no function like the one in the code which gets the incoming message smsin = r.RunMethod("getMessageBody") like this msg_id = r.RunMethod("getMessageId") ??
Erel B4X founder Staff member Licensed User Longtime User Jun 29, 2014 #25 No. The "default messaging app" intercepts the message and adds it to the messages store. The id is not part of the intercepted message. Upvote 0
No. The "default messaging app" intercepts the message and adds it to the messages store. The id is not part of the intercepted message.