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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:23:19+00:00 2026-05-26T17:23:19+00:00

I have two activities one displaying map view and another listview, the main objective

  • 0

I have two activities one displaying map view and another listview, the main objective is both should remain in sync in respect to the data displayed by both of them.

POIs displayed on map should get displayed on list and vice versa.
The problem is, i have a feature called “search area” in tht i search in a map center (150 miles around) and display results only which are visible in currently displayed area of map view. now on map view its working fine and on list view too its working fine if i dont move the map around after POIs has been displayed.

As i am using Projection from map view to get the x,y of items, so when i move the map and switch to list view it gets the list of items and starts finding the x,y of the items but as map has been moved there are some items which can either be added or removed to the listview just because i moved the map and now projection is returning the new x,y for the items which falls under current display area.

but in idle situation i should only display those items in list view which were displayed in mapview.
for. e.g there were 2 items that were displayed in a particular area displayed on a map, now i moved around in the map and just switched to list view now list view will fetch a new list from the server and would try to find their x,y from mapview’s projection but it will include/exclude few items according to the new map state.

how to get the initial state of the mapview’s projection (at the point when i was displayed the original items) so that i can display the same item list again.

i know its bit specific to app logic but still i just want to get the map views projection initial state.

Thanks in advance

  • 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-26T17:23:20+00:00Added an answer on May 26, 2026 at 5:23 pm

    I am answering my own question, this thing is not possible in Android, as Android MapView is singleton in implementation, no matter how many mapview objects you have they will share same internal variables (for e.g. Projection, it will get updated as soon as you update a map view, so that moving to the previous mapview will display the same projection state of the one from which you just switched.) across the application.

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

Sidebar

Related Questions

I have two activities, one is main and I have another activity called Test
I have two activities, both of which use a listview. I called one android:list,
i have two activities within an ActivityGroup, one ProvinceActivity and another CityActivity. so code:
I have two activities. One activity has the main game and the other activity
I have two Activities in my App, one is a ListView which displays a
I have two Activities: one with VideoView attached to MediaPlayer and the second one.
I have one problem using ActivityGroup . I have two activities inside an ActivityGroup
I have two Activities, both have an inner class SurfaceView, which has an inner
I wanna run two system activities one after another in specific order. now as
I have two different activities. The first launches the second one. In the second

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.