Nishant J Nishant J - 1 year ago 79
Android Question

Android buttons

I am planning to do an app in android which plans to send text from mobiles built in messaging app. I know to use intent to call the messaging app. My question is once the mobile's messaging app is chosen to complete the action, instead of user pressing the send button to send the message, is there anyway to automatically send it immediately after messaging app is chosen without waiting for the user to click the send button. Like there are onclicklistener() to monitor the button clicks, I need to know, is there any function that can make the 'send' button automatically to get clicked. In other words, I need 'send' button of messaging app to be caught in its onclicklistner() function without actually clicking it. Is there anyway to do it? Thanks in advance.

Answer Source

Ya if u want to make button to click itself then use


or else just put all your required operation inside function and call after message app chosen.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download