Monthly Archives: January 2015

Waiting for SoundPool to load

While SoundPool is the best tool for handling short sound clips that are frequently used, it does have the problem that the sound is often not played first time. This is because the load into the pool has not finished. … Continue reading

Posted in Android | Leave a comment

Add button programatically

With the help of stackoverflow I managed to add a button programatically. (Previously my code just created myTimerPanel and as that as the content view. public class TimerActivity extends Activity implements OnClickListener { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); … Continue reading

Posted in Android | 2 Comments