Why is this program being unexpectedly stopped?
<p>Why isn't this code working? I've been stuck on this for 2 days.</p>

<pre><code>public  class SongsActivity extends Activity{

        DemoView demoview ;
        FinalView finalview;
        ViewFlipper c ;
        /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle savedInstanceState) {

            super.onCreate(savedInstanceState);
            demoview = new DemoView(this);
            finalview = new FinalView(this);
               // adding view to the viewflipper
            c.addView(demoview,0);
            c.addView(finalview, 1);
                ///initializing the fliiper
            c=(ViewFlipper)findViewById(R.id.viewFlipper1);

            c.setAutoStart(true);
            c.setFlipInterval(500);
            c.startFlipping();

        }
</code></pre>
