I want if anyone click a label then it should trigger a function. Like I want if a user clicks a label then it should go to another page. Following is the code I tried.
Thanks in Advance!!
LabelField joinGroups = new LabelField("Join Groups",LabelField.FOCUSABLE ){
protected void layout(int width, int height) {
super.layout(width, height);
this.setExtent(1000, 44);
}
};
FChangeListener customListenerSurveys = new FieldChangeListener() {
public void fieldChanged(Field field, int context) {
Dialog.alert("Surveys Clicked!");
}
};
joinGroups.setFocusListener(customListenerSurveys);