All right, I solved my own problem. Figured out I needed to check if
the event action was MotionEvent.ACTION_DOWN for touchscreen pressed
down.
On Feb 25, 3:50 pm, coolbho3k wrote:
> I have a button in Android that I want to activate immediately as soon
> as the user touches it. T
I have a button in Android that I want to activate immediately as soon
as the user touches it. This is different from a "click" which the
user activates by touching and then releasing.
I run into problems when I set setOnTouchListener on the button, as
holding the press will continuously trigger
Thanks very much, this worked. Now I have a timer counting from 0 to
500. Yeah, I'm going to study Java more.
On Feb 22, 2:35 pm, Mark Murphy wrote:
> coolbho3k wrote:
> > Thank you. One more problem, however. Within updateCounter() I can no
> > longer make references to th
Thank you. One more problem, however. Within updateCounter() I can no
longer make references to the textView I defined in onCreate. Sorry,
I'm a Java beginner.
On Feb 22, 7:56 am, Mark Murphy wrote:
> coolbho3k wrote:
> > Thanks for your help. This reply is one month late as
ter = (String) tv.getText();
int i = Integer.parseInt(counter);
tv.setText(Integer.toString(i+=1));
}
};
handler.postDelayed(increment, 4000);
}
}
On Jan 26, 2:08 pm, Mark M
Okay, so I am creating a test program (my version of "hello world"
every time I start developing on a new platform) that flashes the
numbers 0 through 500 on the screen rapidly. Here's what I have in my
main Java file so far. Problem is, it won't display anything. Anyone
know what is wrong?
I hav
6 matches
Mail list logo