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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:22:39+00:00 2026-06-17T06:22:39+00:00

I started wondering about dependencies and invocation order between the model and the UI,

  • 0

I started wondering about dependencies and invocation order between the model and the UI, respectively controller–the activity classes:

When I want to restore the state of my Android application in the method onRestoreInstanceState should I:

  1. Update the state of the model, which then makes an invocation to the activity updating the UI?
  2. Update the state of the model and then update the UI based on the model state?

So which one should I prefer?

So all I am looking here really is something like a guide how to order the dependency calls, I know that Android does not really follow MVC, so what should I use as an orientation?

  • 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-17T06:22:40+00:00Added an answer on June 17, 2026 at 6:22 am

    I think that both 1 and 2 can happen depending on what your application is like.

    Your model could broadcast change events, that activities or fragmenets can then react to updating the UI so to speak.

    Or you might have a really simple model, or perhaps a transient model that is passed from activity to activity. In which case your might be more likely to just update the information in that model and then command the UI to refresh, passing the model along with it.

    I’m a bit out of touch so i think both are fine as long as your clear and consistent. When i start using Fragments i might read up on whats the best way to react to changes in the model, they might prefere broadcast changes over direct calls to update/refresh.

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

Sidebar

Related Questions

I've just started learning about Gimp scripting using Python, and was wondering, how do
I've started to learn Ruby recently, and was wondering about which version to learn.
Hi I have just started learning about xsd as I want to use it
I started reading about CLR and was wondering how the runtime exceptions are thrown.
Hey, I just started wondering about this as I came upon a code that
I recently started learning about HttpModules and made my first one. I was wondering
I recently started learning the CodeIgniter framework and i was wondering about one thing:
just started using Zend Framework and I'm wondering what to do with odd classes
Just started converting to MVC from classic ASP and wondering about best practice for
I just started Python programming, and I'm wondering about the elif keyword. Other programming

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.