Hello everyone,
I started to work on my app., but I am having problems switching to a
new activity so I decided just to experiment with that. I am having
problems. Here is my AndroidManifest

- <manifest xmlns:android="http://schemas.android.com/apk/res/android";
package="com.v.t">
- <application>
- <activity android:name=".Start" android:label="Start">
- <intent-filter>
  <action android:name="android.intent.action.MAIN" />
  <category android:name="android.intent.category.LAUNCHER" />
  </intent-filter>
  </activity>
  <activity android:name=".Jim" android:label="Jim" />
  </application>
  </manifest>

Both Start and Jim are located in the com.v.t package. Here is the
code for Start.
package com.v.t;

import android.app.Activity;
import android.os.Bundle;

public class Start extends Activity implements Runnable
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle)
    {
        super.onCreate(icicle);
        setContentView(R.layout.main);
        Thread t = new Thread(this);
        t.start();
    }

    public void run(){
        try{
        Thread.sleep(5000);
        }catch(Exception e){

        }
        android.content.Intent intent = new android.content.Intent();
        intent.setClassName("com.v.t", "Jim");
        startActivity(intent);


    }

}

The app starts properly, but after about 5sec. I get this message on
the emulator.

Apllication Error:com.v.t

An error has occurred in
com.v.t. Unable to find explicit
activity class{com.v.t/Jim}; have
you delcared this activity in your
AndroidManifest.xml?.

I am using mcr5 by the way. Any ideas on what I am doing wrong? The
emulator demos work fine, so I don't think it is that, and I re-
downloaded mcr5 and I still have the problem.
Thanks for any solutions.

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to