Skip to content Skip to sidebar Skip to footer

How To Automatically Record 30sec Video And Send Via Email In A Single Button Click?

In this project first we have to save phone no and mail ID of a particular person.And an image button is placed.when the Image button is clicked once we need to get 30sec video and

Solution 1:

Looking at your code and assuming that the individual clicks to all the buttons are working well, here's what you have to do,

  1. Move the emailing code pre4sent in your button4.setOnClickListener to a seperate method, say emailRecordng()

  2. Call this method from your onActivityResult in the *if(resultCode==RESULT_CANCELED)* block.

This way, when you click the imageButton, it will first record the voice for you and then it will be directly sent via the email from your onActivityResult()

Let me know if this helps

Post a Comment for "How To Automatically Record 30sec Video And Send Via Email In A Single Button Click?"