this is what i get in the error log:
I/ActivityManager( 51): Starting activity: Intent { comp=
{com.android.agent/co
m.android.agent.UserData} }
D/AndroidRuntime( 182): Shutting down VM
W/dalvikvm( 182): threadid=3: thread exiting with uncaught exception
(group=0x4
0010e28)
E/AndroidRuntime( 182): Uncaught handler: thread main exiting due to
uncaught e
xception
E/AndroidRuntime( 182): android.content.ActivityNotFoundException:
Unable to fi
nd explicit activity class {com.android.agent/
com.android.agent.UserData}; have
you declared this activity in your AndroidManifest.xml?
added the activity to the manifest and it worked great ;-)
thanks for the tip!
On Jan 31, 7:57 pm, Mark Murphy <[email protected]> wrote:
> Ziv Tatian wrote:
>
> > Hi all,
>
> > I have two activities that i've created: a welcome screen with a
> > continue button on it, and a user details activity.
> > I want to go to the user details activity from my welcome activity
> > when i click on the continue button.
> > I've tried the following code but i get an error when i try to run it
> > on the emulator whenever i press the continue button.
> > here's the code:
>
> > public class Welcome extends Activity {
> > /** Called when the activity is first created. */
>
> > �...@override
> > public void onCreate(Bundle savedInstanceState)
> > {
> > super.onCreate(savedInstanceState);
> > setContentView(R.layout.main);
> > Button continueButton = (Button) findViewById(R.id.go);
> > continueButton.setOnClickListener(new View.OnClickListener() {
>
> > public void onClick(View view) {
> > Intent mIntent = new Intent(view.getContext
> > (),UserData.class);
> > startActivity(mIntent);
> > }
> > });
> > }
>
> > }
>
> > can anyone help with that?
>
> What is the error as reported in the error log? (adb logcat, DDMS, or
> Eclipse to examine the log)
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---