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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:24:29+00:00 2026-06-10T21:24:29+00:00

Activity_A: { //calling Activity B where i find the user current location lat and

  • 0
Activity_A:

{
   //calling Activity B where i find the user current location lat and lng
   Intent intent = new Intent(Activity_A.this, Activity_B.class);
   startActivity(intent);
}

Activity_B
{
   //after getting user lat and lng, use them in Activity_C to show the initial marker position
   Intent intent = new Intent(Activity_B.this, Activity_C.class);
   startActivity(intent);
   //i don't this Activity_B to show up on back press in Activity_C hence finish(), anyways this Activity_B has no layout
   finish();
}

Activity_C:

{
   //Show a map with marker at position using lat, lng values from Activity_B, allow user to drag the marker and get the new lat, lng. and then finish this Activity to go to Activity_A
   finish();
}

I want this Activity_C send back values of new lat, lng to ACtivity_A without any shared preferences or global variables, i mean by using startActivityForResult and onACtivityResult

  • 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-10T21:24:30+00:00Added an answer on June 10, 2026 at 9:24 pm

    Use setResult and inside activity A get the all data inside OnActivityResult. But starting activity from A to B you need to use startActivityForResult with result code. Else you can use broadcast receivers independent of all the activities you can send and receive in any activity class.

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

Sidebar

Related Questions

Currently I'm starting a new Activity and calling finish on a current one. Is
Can someone tell if why when starting an activity with startActivity(intent) , calling getParent()
I have an Activity calling a Service defined in IDownloaderService.aidl: public class Downloader extends
I have several Activity subclasses in my project, each calling a SOAP based web
I am starting another activity by calling startActivityForResult() and after pressing back button my
I have this structure: Activity A has a ViewPager. The pages of a ViewPager
I am trying to call a static method from another activity to find a
I am calling an Activity B from Activity A, which contains a Video View
I want to know which activity calls current activity.I have three activity namely A,B
I'm logging to bank account and getting account balance. I calling this function from

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.