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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:24:32+00:00 2026-06-14T15:24:32+00:00

I have an app which displays a map in its main activity which sub-classes

  • 0

I have an app which displays a map in its main activity which sub-classes SherlockFragmentActivity because I am using ActionBarSherlock.

The action-bar has a drop down list which gives the user the option to select either view mode or edit mode. View mode is the main activity which shows the map, Edit mode will look the same (as in it displays the map) but it allows the user to edit the map and will have some different buttons on the action bar.

I am not to sure about the best way to do this. Should the two modes be in completely separate activities so when the user presses Edit mode the edit map activity will load through an intent?
This seems like it would work however it would have to initialise the action bar again as well as the map which seems like a waste of code and time.

Any suggestions?
Thanks

  • 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-14T15:24:33+00:00Added an answer on June 14, 2026 at 3:24 pm

    This depends largely on the difference between those states.

    If the edit mode only adds additional input methods (extra buttons for example), I would use the same activity (even the same Fragment), and only set a variable to save the current mode.

    Only of both modes are fundamentally different (different rendering, completely different layout) I would make an extra Activity/Fragment (and try to put as much common code as possible in a parent class.

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

Sidebar

Related Questions

I have a Flash web app which displays user submitted PNG files. Files are
In my Flask app, I have a view which displays a post @post_blueprint.route('/post/<int:year>/<int:month>/<title>') def
I have a app which will download a file from web. The download action
I have an app which has a map and some POI on it. I'm
I have a very simple WebView in my app which displays a Welcome dialog.
I have developed the ipad app which displays images and other product details from
I have a ModelForm in my Django app that uses a forms.ModelMultipleChoiceField, which displays
I have written an app which displays the location of a set of traffic
I have a modal view in my app which displays a UIMapView. I then
I have a UIWebView in my app which I want to use to display

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.