Android Activity onCreate Being Called Twice When Navigated Back From Another Activity

view story

http://stackoverflow.com – I have an app that generates music after a user authenticates with OAuth on a webview activity, looking something like this: main player activity-OAuth Activity-back to main player activity. However, the onCreate method is being called twice when going from the OAuth activity, resulting in two audio tracks generated and played at the same time. Here's part of the code from the MainActivity: public class MainActivity extends Activity { int pitch=60; private static final float VISUALIZER_HEIGHT_DIP = 50f; Random rn; boolean isRunning = true; boolean isPlaying=false; SeekBar fSlider; double (HowTos)