android - Only specific apps for action.send -


i want send link app. use following code:

intent.settype("text/plain"); intent.putextra(intent.extra_subject, subject); intent.putextra(intent.extra_text, text); startactivity(intent.createchooser(intent, "share")); 

this brings dialog apps. filter list, i.e. remove blutooth app.

how can remove apps dialog?

you cannot "remove apps dialog" directly.

you welcome use packagemanager , queryintentactivities() , present own custom dialog of stuff. however, not able reliably identify "the bluetooth app", since extent there might qualify on given device, may have different names based upon device manufacturer.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -