Sorry, the design requirements of the problem are not very clear from
the description of the post.
Do you want to run the loop for a finite for every push down or only
while the button is pushed down.
Here are some ideas if they help solve your issue.
You can add View.OnKeyListener and View.OnTo
Anyone?
It's just that the code posted i think will only sound once and you
will have to click it again for it to sound again?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this
Thanks for your reply. However i do not see which part of your code
will repeat lowering the variable and playin the sound, while the
button is held down. It will only play once and then yuo will hav to
click again
--~--~-~--~~~---~--~~
You received this message bec
Thanks for your reply. However i do not see which part of your code
will repeat lowering the variable and playin the sound, while the
button is held down. It will only play once and then yuo will hav to
click again
--~--~-~--~~~---~--~~
You received this message bec
Here is a piece of code that will do what you want.
private static int myVariable = 100;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
ImageButton btn = (ImageButton)findViewById
(R.id
5 matches
Mail list logo