I strongly appreciate any and all help I can get
1)My timePicker (named timeSelector) is supposed to be interacted with
2)Then when the button is clicked it is supposed to take the timeSelector's hour and minute into two variables.
However, I am really struggling with it, which is frustrating because it seems relatively straightforward.
Sources I Have Looked At:
TimePicker myPick =(TimePicker) findViewById(R.id.timeSelector);
int myhour = myPick.getCurrentHour();
int myminute = myPick.getCurrentMinute();
I really wanna thank everyone that helps me out in advance. I'm confident that as I learn and practice more that this amateur will become a pro!
Change the import statement for
TimePicker class to
android.widget.TimePicker, it looks like you have a class with the same name in your project.