Wednesday, September 5, 2012

Android - Full Screen

I was putting some finishing touches onto a new little ap for my 2 year old and needed to make it full screen. This is what I ended up using.  Edit the AndroidManifest.xml file and change the android:theme line to this.

        android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

Tuesday, September 4, 2012

Learning Android - Audio Volume Control

I've been spending some time learning to program using Android.  It's been on my list for a long time and I'm going slow and building fun little things for my 2 year old. Nothing commercial, just something for him to enjoy.

The first app I built had an issue that the audio controls on the device wouldn't work unless a sound was actually playing.  Found a really simple work around.

Add this call to the onCreate method in the activity.

        setVolumeControlStream(AudioManager.STREAM_MUSIC);

Pretty simple little fix.