Tuesday, December 7, 2010

Fix android activity screen orientation

In your activity class insert code:
    @Override
    public void onConfigurationChanged(Configuration newConfig)
    { super.onConfigurationChanged(newConfig);
    }

In your manifest activity tag, declare attribute:
 android:screenOrientation="portrait"

Thursday, December 2, 2010

Predator sound in android

Configure AudioRecord input as stereo and AudioTrack output as mono. You will get sound as if a predator's listening.