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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:19:16+00:00 2026-05-27T14:19:16+00:00

Can an activity send itself an intent ? Can an activity A send a

  • 0

Can an activity send itself an intent ?

Can an activity A send a “start” intent to start another activity B (onCreate() of B invoked) and B send again another start intent to A to make it appear again (instead of using finish()) ?

Is there another intent to make A appear again on foreground ?

If A has launched services with Java threads is there a risk that those threads are stopped/killed when another activity is started by A ?

Regards,
Apple92

  • 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-27T14:19:17+00:00Added an answer on May 27, 2026 at 2:19 pm

    Can an activity send itself an intent ? sort of. your next question is basically what I was going to tell you.

    Can an activity A send a “start” intent to start another activity B (onCreate() of B invoked) and B send again another start intent to A to make it appear again (instead of using finish()) ? yes, by using a combination of lifecycles (see onPause() and onResume() methods) and startActivityForResult and onActivityResult(..)

    Is there another intent to make A appear again on foreground ? what? you can whenever you want. You don’t have to call finish() after you startActivity

    If A has launched services with Java threads is there a risk that those threads are stopped/killed when another activity is started by A ? No. Only if Activity A is destroyed will that risk come up, and even then it is determined by how you start threads (a thread in a service will not be killed when its calling activity is killed)

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

Sidebar

Related Questions

can my activity broadcast this intent from itself Intent i = new Intent(android.provider.Telephony.SMS_RECEIVED); sendBroadcast(i);
How can i make an intent on the same Activity? I have a Activity
Can someone tell if why when starting an activity with startActivity(intent) , calling getParent()
I have the following problem: I have an Activity where a user can start
How I can use the intent to send the data to the second class?
How can i send a message between an activity and a thread if put
How can I send email using Perl through my Gmail account? The one CPAN
I have a short question. How can I send data from an activity to
I want to send the Button View to another activity, eg. Button bttn=(Button )findViewById(R.id.bttn)
In my app I need to send a String[] titlephotos; to another Activity. I

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.