[android-beginners] Re: Is there a simple way to...

2009-08-11 Thread Balwinder Kaur (T-Mobile)
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

[android-beginners] Re: Is there a simple way to...

2009-08-10 Thread Hugh
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

[android-beginners] Re: Is there a simple way to...

2009-08-10 Thread Hugh
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

[android-beginners] Re: Is there a simple way to...

2009-08-10 Thread Hugh
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

[android-beginners] Re: Is there a simple way to...

2009-08-10 Thread Balwinder Kaur (T-Mobile)
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