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 8161179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:26:34+00:00 2026-06-06T18:26:34+00:00

I have recently picked up a project from a few months ago. Went to

  • 0

I have recently picked up a project from a few months ago. Went to re-open the project and found a few of the following errors:

public void onCreate(Bundle savedInstanceState) {

Gives the error: The method onCreate(Bundle) of type myMain must override or implement a supertype method

super.onCreate(savedInstanceState);
    setContentView(R.layout.splashscreen);

Gives the errors: The method onCreate(Bundle) is undefined for the type Activity
and The method onCreate(Bundle) is undefined for the type Activity.

@Override
protected void onPause() {

Gives the error: The method onPause() of type myMain must override or implement a supertype method

I have created a new project with identical code for the first section (see code block 2) and do not receive any errors. I am certain it is a small config/code change I cannot pin down that will solve all these problems in one sweep.

Full code is:
package com.myapp.app;

import android.app.Activity;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;

public class myMain extends Activity {

MediaPlayer mpSplash;

@Override
// onCreate works like in the activity diagram from tutorial.
public void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    setContentView(R.layout.splashscreen);

    mpSplash = MediaPlayer.create(this, R.raw.logo_noise);
    mpSplash.start();
    Thread logoTimer = new Thread()
    {
        public void run()
        {
            try{
                int logoTimer = 0;
                while(logoTimer < 2000)
                {
                sleep(100);
                logoTimer = logoTimer +100;
                }
                startActivity(new Intent ("com.myapp.app.CLEARSCREEN"));
            } catch (InterruptedException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }

            finally{
                finish(); // shut down class
            }
        }
    };
    logoTimer.start();
}

@Override
protected void onPause() {
    // TODO Auto-generated method stub
    super.onPause();
}

@Override
protected void onDestroy() {
    // TODO Auto-generated method stub
    super.onDestroy();
    mpSplash.release();
}

@Override
protected void onRestart() {
    // TODO Auto-generated method stub
    super.onRestart();
    mpSplash.pause();
}

@Override
protected void onResume() {
    // TODO Auto-generated method stub
    super.onResume();
    mpSplash.start();
}

@Override
protected void onStop() {
    // TODO Auto-generated method stub
    super.onStop();
}

}

CODE BLOCK 2

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

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

I have searched around and found mainly overly complex and unrelated issues such as:
import of android.r
Updating the build path
Re-importing the project
creating new references to classes.
Configuring proguard?
None of the above have seemed to work.

Any help that anyone could provide on this issue would be greatly appreciated.

  • 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-06-06T18:26:35+00:00Added an answer on June 6, 2026 at 6:26 pm

    I have recently picked up a project from a few months ago. Went to re-open the project and found a few of the following errors.

    If your code was working before w/o errors, then it definitely should be working now without errors. I am not sure why you posted all of your code in your post, for this reason…

    Make sure you haven’t moved the android SDK folder (android-sdks by default). This will cause eclipse to throw errors like you are describing, because it won’t be able to find the framework classes such as Activity, etc.

    The method onCreate(Bundle) of type myMain must override or implement a supertype method.

    This error means that eclipse thinks that onCreate is not a defined method in the Activity class. This leads me to believe that your either your eclipse install is outdated, eclipse can’t find the SDK class files, or your eclipse install is just totally messed up. Make sure you have the latest version of the ADT plugin (revision 18). If that doesn’t work then just create a new project… it’s not worth trying to figure out what went wrong if you can just start from scratch.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently merged together 5 of my stand-alone projects into one project to
I have recently had a linux server compromised from bots uploading .php scripts and
I have recently upgraded my MVC 3 project to MVC 4. After all the
I have recently started using Netbeans with following stack Liferay, icefaces with jBoss. Is
Our project switched over from SVN to Mercurial recently. In SVN, to version our
I've recently picked up Michael Abrash's The Zen of Assembly Language (from 1990) and
have recently changed the url structure of my website and have added a few
I have recently started a new C++ project and I intend to make it
I have recently inherited a large project using an sqlite3 database and currently I
I have a rather confusing issue. I've recently picked up some code I wrote

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.