• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps time interval loop

amirihana

Newbie
i want to write a code that sets an interval of time for a certain method and run it 4 times for specific time, inside that interval.

for exemple: i have to generate a sound from the smartphone's speaker. the sound's length is 10 ms, and i want to generate that sound every 50 ms in an interval of 200 ms.
any ideas on how to do that?
 
Are you attempting to do this as part of developing an app? Let us know and I'll get this thread moved to a place to get the best eyes on it.:)
 
Back
Top Bottom