I know this is probably a really stupid question but have tried for
ages and searched but cant get it to work. I'm trying to create a new
screen when an item in a list in my first screen is selected.  i use
the code
Intent intent = new Intent();
         intent.setClass(this, Ingredients.class);
         startActivity(intent);}

to try get the Ingredients.java file to run the file looks like this

package com.example.easychef;
import android.app.Activity;
import android.os.Bundle;

public class Ingredients extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle circl) {
        super.onCreate(circl);
        setContentView(R.layout.layout_i);
    }
}

and i added this line to the manifest
<activity android:name="com.example.easychef"
android:label="com.example.easychef.Ingredients"></activity>

The program just crashes as i select an item in the list. Please can
someone tell me what im doing wrong.
thank you

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to