How do you make a button return a boolean value?

Just run your action when the button is clicked.

Just run your action when the button is clicked. Add this to your onCreate: Button StopB = (Button)findViewById(R.id. StopB); StopB.

SetOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v){ handler. PostDelayed(r, 1000); } }.

1 Android UI is event-driven programming. – pst Oct 30 '11 at 5:40 Oh. My bad, your right.

Thank you. – Pillager225 Oct 30 '11 at 6:14.

Haven't done any Android dev, but I would presume it's a syntax error. Assuming it's not a copy error made by the StackOverflow editor pasting some code, shouldn't it be: private boolean StopBClicked() { Button StopB = (Button)findViewById(R.id. StopB); StopB.

SetOnClickListener(new View.OnClickListener(){ return true; }); }.

Well this gives an error saying that View.OnClickListener() is unimplemented. Usually it is implemented by public void onClick(){} – Pillager225 Oct 30 '11 at 5:31.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions