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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:00:15+00:00 2026-06-16T01:00:15+00:00

I think not may be I’m wrong is there a different way? the thing

  • 0

I think not may be I’m wrong is there a different way? the thing is I have a function to access from a activity and I can’t define the same function within the service

  • 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-16T01:00:16+00:00Added an answer on June 16, 2026 at 1:00 am

    Your question is a bit ambiguous, but I’ll try to answer it anyways:

    • Yes, you can call any method (that doesn’t take too long) from inside the onStop()-method.
    • But, calling methods on an Activity that is currently in the stopped state is not a good idea.

    Don’t abuse the Activity-classes for function-collections! There should only be methods inside it which work directly with the Activity itself.

    For function collections or if you need to access a class with one state from multiple Activities, consider one of these:

    • Override Application
    • Use a Singleton (recomanded)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Excuse the poor title, i can not think of the correct term. I have
I'm using guidelines right now, but I do not think there is any way
I think this may not have anything to do with the area tags, but
I'm trying to debug a website, and I think that jQueryUI may not have
I think my question may be a duplicate, but I do not know what
I may not be asking this in the best way possible but i will
I think I may not understand correctly how array_splice is supposed to work. My
Ok I think my understanding of properties in objective c may not be what
Is there a way to directly connect to Redis using client side (not Node.js)
My question may be silly but I think it´s not. I´m using flex with

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.