Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6840345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:49:57+00:00 2026-05-26T23:49:57+00:00

I’m getting an activity not found exception. I’m starting a SplashScreen Activity and then

  • 0

I’m getting an activity not found exception. I’m starting a SplashScreen Activity and then passing the control to the MainActivity.

Here is my manifest file

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="se.copernicus.activity"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="5" />

    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:icon="@drawable/icon"
        android:label="@string/app_name" >

        <activity
            android:label="@string/app_name"
            android:name=".SplashScreenActivity" >
            <intent-filter >
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="se.copernicus.activity.MainActivity" >
     </activity>

        <activity
            android:label="@string/second_activity"
            android:name="se.copernicus.activity.Secondactivity"
            android:theme="@android:style/Theme.NoTitleBar" >
        </activity>
    </application>
</manifest>

This is the splash screen activity that I am starting at first.

public class SplashScreenActivity extends Activity {
protected boolean _active = true;
protected int _splashTime = 5000;
Intent intent = new Intent("se.copernicus.activity.MainActivity");
Thread splashTread = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    splashTread = new Thread() {
        @Override
        public void run() {
            try {
                int waited = 0;
                Log.i("Coming here 1","Coming here 1");
                while(_active && (waited < _splashTime)) {
                    sleep(50);
                    Log.i("Coming here 2","Coming here 2");
                    if(_active) {
                        waited += 50;
                        Log.i("Coming here 3","Coming here 3");
                    }
                }
            } catch(InterruptedException e) {
                // do nothing
            }  finally {
                finish();
                Log.i("Coming here 4","Coming here 4");
                startActivity(intent);

                Log.i("Coming here 5","Coming here 5");

                if(splashTread!= null){
                    splashTread.stop();
                    splashTread=null;
                }
            }
        }
    };
    splashTread.start();
}
@Override
public boolean onTouchEvent(MotionEvent event) {
    if (event.getAction() == MotionEvent.ACTION_DOWN) {
        _active = false;
    }
    return true;
}

}

I’ve declared the activity in the manifest double checked for errors, the package name too. And yet this error shows up. Where am I making a mistake ?

The error logs:

E/AndroidRuntime(340): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=se.copernicus.activity.MainActivity }
E/AndroidRuntime(340):  at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1408)
E/AndroidRuntime(340):  at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
E/AndroidRuntime(340):  at android.app.Activity.startActivityForResult(Activity.java:2827)
E/AndroidRuntime(340):  at android.app.Activity.startActivity(Activity.java:2933)
E/AndroidRuntime(340):  at se.copernicus.activity.SplashScreenActivity$1.run(SplashScreenActivity.java:41)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:49:58+00:00Added an answer on May 26, 2026 at 11:49 pm

    Take a look at Intent(String) documentation:

    public Intent (String action)

    action The Intent action, such as ACTION_VIEW.


    Now take a look at this piece of your code:

    Intent intent = new Intent("se.copernicus.activity.MainActivity");
    

    It says that you want to start activity with action "se.copernicus.activity.MainActivity". But you don’t want that. You want to start activity of class se.copernicus.activity.MainActivity. These are two different things!


    And now look at error message:

    No Activity found to handle Intent { act=se.copernicus.activity.MainActivity }
    

    Notice the act part in error message, it stands for Action. This means that Android can not resolve any activity for action "se.copernicus.activity.MainActivity". This only proves my previous point.


    Instead of treating your class name as action, you need to create correct Intent with empty action value, but with correct Activity class name (more precisely with correct Component Id). So you actually need to create Intent using another Intent constructor:

    Intent intent = new Intent(SplashScreenActivity.this, MainActivity.class);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
i want to parse a xhtml file and display in UITableView. what is the
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I need a function that will clean a strings' special characters. I do NOT
I have a reasonable size flat file database of text documents mostly saved in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.