Can I click a button programmatically for a predefined intent?

info picture info · Apr 18, 2011 · Viewed 72k times · Source

I need the button click of the intent ACTION_SEND. Here there is no need of displaying UI. Can I get the "Send" button click from the MMS-SMSProvider in Android?

Answer

Nirav Bhandari picture Nirav Bhandari · Apr 18, 2011

You can click a button programmatically by using the button.performClick() method.