I want to show another screen when a user taps the screen on a picture I put up.
Here is my simple class:
Code:
public class SelectYesNoArea extends Manager {
BitmapField yes;
BitmapField no;
DateField date;
Calendar cal;
public SelectYesNoArea(long style){
super(style);
Bitmap bgPic = Bitmap.getBitmapResource("divBackgrounds.png");
Background bg = BackgroundFactory.createBitmapBackground(bgPic);
setBackground(bg);
cal = Calendar.getInstance();
date = new DateField("",cal.getTime().getTime(), DateFormat.DATE_SHORT);
add(date);
Bitmap bitYes = Bitmap.getBitmapResource("yes.png");
yes = new BitmapField(bitYes);
add(yes);
Bitmap bitNo = Bitmap.getBitmapResource("no.png");
no = new BitmapField(bitNo);
add(no);
}
}
How can I achieve this? I want them to be taken to another screen when he taps the picture. I need help specifically with the click handling part, the screen navigation is secondary at this point. Thanks for the help!