use of ee.ioc.phon.android.speak.view.SpeechInputView in project K6nele by Kaljurand.
the class ChatDemoActivity method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_chat_demo);
mPrefs = PreferenceManager.getDefaultSharedPreferences(this);
mRes = getResources();
SpeechInputView siv = (SpeechInputView) findViewById(R.id.vSpeechInputView);
CallerInfo callerInfo = new CallerInfo(createExtras(), getCallingActivity());
// TODO: review this
siv.init(R.array.keysActivity, callerInfo, 0);
siv.setListener(getSpeechInputViewListener(), null);
mList = (ListView) findViewById(R.id.list_matches);
mList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Object entry = parent.getAdapter().getItem(position);
startActivity(entry.toString());
}
});
}
Aggregations