How to prevent incoming messages by reaching the native inbox in android? -


i developing app holds messages in it's own inbox rather native inbox.

this can achieved if incoming messages prevented reaching native inbox.

there attribute android:priority in <intent-filter>, message can first received current receiver others.

but not know how properly, know?

i assume mean sms messages? best, , afaik, receive message via registering proper broadcastreceiver object, copying message database, marking read in sms contentprovider , deleting sms contentprovider. check out this article on how receive sms messages , check out this post on how use sms content provider.

edit stand corrected, there method i've had limited success with. in broadcastreceiver can call abortbroadcast() method cancel broadcast. important thing here register receiver intent filter has higher priority (say, 100) receives sms before else does.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -