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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:41:14+00:00 2026-06-12T19:41:14+00:00

I am creating a android library, In that I want to find if the

  • 0

I am creating a android library, In that I want to find if the OnCreate of the main application is running? . I dont know whether oncreate fire any listener. Anybody knows will oncreate fires any listener. Any ideas? Thanks.

  • 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-12T19:41:15+00:00Added an answer on June 12, 2026 at 7:41 pm

    No this callback does not exist.

    The way most libraries introduce this callback is by making a base type that they require another application to call back into. Like you could make your library do something like:

    public class MyLibBaseApplication extends Application {
    
       public void onCreate() {
          super.onCreate();
          // my callback stuff.
       }
    }
    

    and then require all the users of your library either use or extend your Application object as the Application class in their manifest. This way sort of sucks for developers though, although there are a few libs that do this. It blocks you from using multiple libs with this same pattern (Super annoying).

    Personally I think just asking for a callback from whoever is using the library is probably much better from a client and dev who would integrate a library.

    Just a simple call or static function that would be like:

    public class MyApplication extends Application {
    
        public void onCreate() {
           super.onCreate();
           //register
           YourLibrary.onCreateFired(this);
           // or istantiate and register
           YourLibraryCallback cb = new YourLibraryCallback(this);
           cb.onCreateFired();
        }
    }
    

    This way I think offers the most flexibility.

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

Sidebar

Related Questions

I'm creating an android application that deals with texts files. I want my users
I would like know: 1) If there is any Android UI library that looks
I'm creating an Android application that requires the following: Data from RSS feed gets
I'm creating an Android chat application. I want chat screen to include features like
I'm creating an Android application that requires me to create a bitmap of the
I am creating an android application that requires me to call is in different
I am creating an application for android, at first i used one library project
I am creating an android Application that will add effect on Bitmap. Is there
I'm creating an android application which should parse a Json from a file or
I am creating an android application in flash builder 4 using 4.1 SDK on

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.