[android-developers] Re: Android 1.6 SDK is here!

2009-09-21 Thread Eric M. Burke
I do understand that sources are available at source.android.com, but it would save people time if a src JAR were bundled with the SDK download. http://code.google.com/p/android/issues/detail?id=979 This seems like a reasonable request. I know I've personally spent many hours on previous SDKs

[android-developers] MediaPlayer sluggish to play sounds

2009-03-31 Thread Eric M. Burke
I have an Activity that plays a brief OGG pop sound effect when bubbles pop. To keep it fast and to ensure I can play several pops, I create four MediaPlayer instances. I synchronize access to a pool of instances, so I can play up to four pops at once. Once a sound completes, I call seekTo(0) and

[android-developers] Re: Issue with pending messages and onDestroy()

2008-12-03 Thread Eric M. Burke
Take a look at Ed Burnette's comment on this blog: http://androidguys.com/?p=2084 The simplest way is to implement onRetainNonConfigurationInstance() to save some data that will be kept across the destroy. You use getLastNonConfigurationInstance() in the new instance of the Activity to recover