java - Android - Disable text message notifications programmatically -


i'm working on application handles text messages. personal application , not plan release it, it's going allow me share text messages (and phone number) between numerous devices through internet. it's fun learning project first application, , i've done quite lot.

however annoying part text-message popup device gets when receiving message. love when i'm using device, , go options , disable popup when i'm not planning on using device, i'm very, forgetful person , turning on wont happen. i'll never reply messages.

basically want programmatically interrupt (or not notify) default messaging application of text message, still want logged in messaging history. message can't "discarded". should happen of-course while applications service running.

i've been searching through android api quite time , can't seem figure out, possible , if can link me proper place in api begin?

basically want programmatically interrupt (or not notify) default messaging application of text message...

this isn't possible.

assuming "interrupt" mean prevent default sms app issuing notification, can no more default app other app don't control.

additionally, default sms app responds sms_deliver_action broadcast, , app receive broadcast, wouldn't possible "not...notify" default app of incoming message. app wouldn't have chance abort broadcast, if possible so.

(in versions prior kitkat, oftentimes possible register receiver high priority sms_received_action broadcast, , abort broadcast before native sms app received it. rajan ks's answer refers to.)

...however still want logged in messaging history.

the default sms app responsible writing incoming messages provider. if able prevent default app receiving incoming message, app have write message itself. isn't possible, either, default app 1 standard write access provider.


Comments