Text

Making changes to the widgets

Hello
I'm trying to change the SINGLE LINE TEXT WIDGET(SLTW).
I want to add a button and TOAST the text that is being recongnized.
I'm doing this> in OnRecognitionEnd()

Button new_button = null;
new_button.setText(TOAST);
new_button.setOnClickListener(new View.OnClickListener() {
//@Override
public void onClick(View arg0) {

Toast.makeText(getApplicationContext(),
Button is clicked, Toast.LENGTH_LONG).show();

}

I'm getting errors. AND also tell me that I want to add a login page to this widget how Am I supposed to do that as there is no XML in this widget. Please reply soon THANKYOU

Login or Signup to post a comment