Making changes to the widgets

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.setOnClickListener(new View.OnClickListener() {
public void onClick(View arg0) {

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