android - Opening create message using an intent -


i have following code displays create message screen.

string uri= "smsto:"; intent intent = new intent(intent.action_sendto, uri.parse(uri)); intent.putextra("compose_mode", true); startactivity(intent); 

however, when intent called, asked choose list of apps messages, whatsapp, skype, etc. possible app directly open messages instead of asking user choose option?

no not possible. sending implicit intent requesting perform task, intent can caught application register intent filter same intent name. not have control on selecting application directly a number of application same intent filter.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -