speech to text in email

by vicky.r » Sat, 08 May 2010 12:21:38 GMT


Sponsored Links
 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

--



Other Threads

1. "Done" missing from soft keyboard on TYPE_TEXT_FLAG_MULTI_LINE

Hi,

When I programmatically set a EditText to the following, the soft
keyboard has "Done" in the lower right:

int settings = EditorInfo.TYPE_CLASS_TEXT;
et.setInputType(settings);
et.setImeOptions(EditorInfo.IME_ACTION_DONE);

When I add TYPE_TEXT_FLAG_MULTI_LINE, the "Done" button is gone, and
replaced with an Enter key symbol.

int settings = EditorInfo.TYPE_CLASS_TEXT |
EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE;
et.setInputType(settings);
et.setImeOptions(EditorInfo.IME_ACTION_DONE);

Is this the expected action with a MULTI_LINE flag? How can I get the
Done button to display with MULTI-LINE

TIA,

jb

-- 

2. Upgrade jd eclair

Bro tolong japri ke email sy biar bs upgrade spica sy. TQ

-- 
"Indonesian Android Community [id-android]" 

3. Regarding BT-OPP (file tranfer using OPUSH application) throughput

4. Socket app- Worked fine in Java, not in Android

5. client certificate authentication for ssl/https connection

6. Switching between tasks

7. USB Wifi device detection and loading the driver for same