• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps speech to text in email

vicky.r

Lurker
hi

i'm new to android.. i try to email application in android. For composing email i try to give it as (speech --> text) as input to write email. that allow user can type the message or he can speak (that will convert into text).
please give me suggestion or sample coding or guidelines to do this


this is my coding for sending email but i dont know how to include (speech to text) as input to compose email

package com.test.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class auboutus extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.aboutus);

Button aboutUs_button = (Button)
findViewById(R.id.aboutUs_button);
aboutUs_button.setOnClickListener(new OnClickListener() {

public void onClick(View arg0) {

Intent i = new Intent(Intent.ACTION_SEND);
i.setType("text/plain");
i.putExtra(Intent.EXTRA_EMAIL, new String[]
{"t...@gmail.com"});
i.putExtra(Intent.EXTRA_SUBJECT,"subject goes here");
i.putExtra(Intent.EXTRA_TEXT,"body goes here");
startActivity(Intent.createChooser(i, "Select email
application."));

}
});
}

}

-vicky
 
hi

i'm new to android.. i try to email application in android. For composing email i try to give it as (speech --> text) as input to write email. that allow user can type the message or he can speak (that will convert into text).
please give me suggestion or sample coding or guidelines to do this


this is my coding for sending email but i dont know how to include (speech to text) as input to compose email

package com.test.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class auboutus extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.aboutus);

Button aboutUs_button = (Button)
findViewById(R.id.aboutUs_button);
aboutUs_button.setOnClickListener(new OnClickListener() {

public void onClick(View arg0) {

Intent i = new Intent(Intent.ACTION_SEND);
i.setType("text/plain");
i.putExtra(Intent.EXTRA_EMAIL, new String[]
{"t...@gmail.com"});
i.putExtra(Intent.EXTRA_SUBJECT,"subject goes here");
i.putExtra(Intent.EXTRA_TEXT,"body goes here");
startActivity(Intent.createChooser(i, "Select email
application."));

}
});
}

}

-vicky
Welcome to the AF forums and enjoy your visits !! :cool:

moving this post to the developers section

 
Back
Top Bottom