i had the line in the manifest in the wrong place. thanks for the
help.
On Sep 11, 7:30 pm, Mark Murphy <[email protected]> wrote:
> Boozel wrote:
> > 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 anew
> >screenwhen an item in a list in my firstscreenis selected. i use
> > the code
> > Intent intent =newIntent();
> > 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.
>
> What is the exception? You can get a stack trace via adb logcat, DDMS,
> or the DDMS perspective in Eclipse.
>
> --
> Mark Murphy (a Commons
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android 1.5 Programming Books:http://commonsware.com/books.html
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---