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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:40:52+00:00 2026-05-22T01:40:52+00:00

I’ve worked in software development for a number of years (10+) and am just

  • 0

I’ve worked in software development for a number of years (10+) and am just starting to have a proper look at Android. From my current understanding, a GUI is built up of Activities (replacing Forms, etc) and each of those is treated almost like its own mini program since passing references to data is not the simplest approach, and those that are available aren’t particularly nice.

Anyway, my current favoured approach to GUI development is to create an object model that contains all of the functions I want to provide and then I can build the GUI (or console, or server access, or whatever) to talk to that model via Interfaces. Individual forms may be passed cut down interfaces, and only partial parts of the model, that are used for that particular form. For me, this keeps the front end separate from the functionality and also abstracts away the implementation of the Object Model from the GUI. One advantage for me is that I can write a library to do something then stick on a java GUI, an android GUI, a console, whatever. In fact, I sometimes develop the functionality prior to developing any GUI.

Now, in Android this appears to be a trickier approach to take. I think I could achieve the same by serialising the model, and parts of it, and passing these around as strings but I’m not sure this is practical. I also can see that this wouldn’t work if part of the model needed to callback to another part of the model that won’t exist because it wasn’t in the serialised section. ie, I have an object model that holds a list of data objects. I want to pass a data object to another Activity and if it gets edited at all, call back to the object model to enable it to do something else.

Am I able to write something to reuse my object models or does this approach just not work well with Android? If it does work, how? If not, what suitable alternatives can I use?

  • 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-22T01:40:53+00:00Added an answer on May 22, 2026 at 1:40 am

    You are attempting to model Android development with desktop GUI or console mode development.

    Rather, consider Web development.

    Unless you’ve hopped on the node.js bandwagon, your Web app is not written in Javascript. However, a bunch of your GUI functionality will be implemented in Javascript (e.g., client-side validation, enforcing required fields before enabling the submit button). While you may have a rich object model for handling the bulk of your business logic, that will be on the server, in Java, Ruby, PHP, Perl, Python, or whatever. Web pages do not directly interact with that rich object model. And, each Web page stands alone, passing data to other pages only by relatively limited data in key-value pairs (GET parameters).

    Android is, architecture-wise, a bit of a mash-up of desktop and Web development patterns. Activities are standalone entities, loosely coupled, as are Web pages. You don’t pass model objects between activities, just as you don’t pass model objects between Web pages.

    This does not mean that you cannot have a rich object model. However, just as Web pages are going back to a central server to manipulate the Web app’s rich object model, activities will need to reach back to a central store to manipulate your rich object model. And, just as Web pages tend to pass around identifiers of objects, your activities can pass around identifiers of objects, so each activity can then access the proper object from the central store.

    Whether that central store is mediated by a Service or via some singleton is up to you and would depend some on what that rich object model was really supposed to represent.

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

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a text area in my form which accepts all possible characters from
I have a view passing on information from a database: def serve_article(request, id): served_article
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,

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.