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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:44:36+00:00 2026-05-17T22:44:36+00:00

I wounder if there is some possible to know from which parent Iam coming

  • 0

I wounder if there is some possible to know from which parent Iam coming from in the child so I can do different stuff depending on who the parent is of the activity..

This is how Iam going over to the child. But I don’t know how to handle this in the child to check who is the parent.

    public void chooseLocation(View v){
    Intent i = new Intent();
    i.setClass(InsertAd.this, Location.class);
    startActivityForResult(i, REQ_CODE_SELECT_LOCATION);
}

The above code is used on one of the parents,, is there somehow I can use “EQ_CODE_SELECT_LOCATION”?

Also I wounder how is possible to send data to a child activity?

  • 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-17T22:44:37+00:00Added an answer on May 17, 2026 at 10:44 pm

    Put in Extra of your intent to pass extra data. eg:

    Intent i = new Intent();
    i.putExtra("CallerClass", "com.example.callingActivity");
    ...
    

    and later in your Location.class, you can retrieve those extra via getIntent()

    string caller = getIntent.getExtras().getString("CallerClass");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wonder if there's any tool/website where I can plot some run times as
there are already some applications available which understand the mysql protocol and to which
I wonder if there's some way of doing this, or even if it should
hi i wonder if there are some GUI softwares to administrate a svn repo?
hi i wonder if there are some GUI softwares to administrate a svn repo?
I have started to use Mustache JS some hours ago. I wonder if there
I wonder if there is better way to get max from column c1 and
I am a great fan of code generation (from UML) and coming from the
To make a struct's members private to the outside I know that I can
I want to know all the possible uses of cookies. Are they good or

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.