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

  • Home
  • SEARCH
  • 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 8407075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:16:51+00:00 2026-06-09T23:16:51+00:00

In my Android project I am using my custom Android library. In this library

  • 0

In my Android project I am using my custom Android library.

In this library I have defined followed Activity (part of the snippet):

public class MyLibAcitivity extends Activity {

    int  counter = 0;
    int[] results = new int[2];

In the main project I would like to extend this Activity:

public class MainActivity extends MyLibAcitivity {

However, I am getting following error:

Implicit super constructor  is undefined for default constructor. Must define an explicit constructor

How I can make it works?

On the other side, maybe I have not correct approach. What I want to achieve, is to have all logic of the application in library and extend few classes (activities) to use different “data source” – my data source is for now another Java class. So basically, in main class I just want to change source to the local one, instead of taking data from library.

Any thoughts?

  • 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-09T23:16:52+00:00Added an answer on June 9, 2026 at 11:16 pm

    Must define an explicit constructor

    if you’re on Eclipse you right click on the class code -> Source -> Generate Constructor from Superclass.

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

Sidebar

Related Questions

In my project I am using custom android devices and I have to encrypt
I am re using code mentioned at tutorial http://vikaskanani.wordpress.com/android-custom-gallery-and-instant-upload-project/ In this project, How can
I am currently working on android project where I am using a custom list
I am doing NDK profiling for my project using android-ndk-profiler-3.1. I have made changes
I'm trying to build an Android project using the ndk, but I have run
I have an android project with multiple build targets (using ant). For testing purposes,
I have a few custom views in my Android project and I've added the
I made a Appengine connected Android project. Worked will. Made custom Entity Class and
I am testing tuProlog in Android. I have an Activity TuProlog, class Parser to
I use eclipse sometimes to build my android project(Using ADT 19). If i have

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.