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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:56:59+00:00 2026-06-15T19:56:59+00:00

I am creating an android app. It is my first real android app that

  • 0

I am creating an android app. It is my first “real” android app that I’m creating and I’m also new to Java. I have never created any program with OOP before so I’m a little confused with the structure of things. I have some PHP, experience but I initially learned to program with Turbo Pascal which was procedural (inline?).

Anyway… Here is the situation:

  1. Main Activity – This is the activity for controlling the actual Android app that I have.
  2. class ScoreClock – This is where i have the following methods:

    public ScoreClock // initialize all the fields(variables) within the ScoreClock class.
    public getMinutes(long ms)  // take ms remaining and calculate minutes left.
    public getSeconds(long ms)  // take ms remaining and calculate seconds left.
    

Now… I’m thinking of adding public void updateBoard() which would be for updating all of the values to the actual scoreboard. What I’m confused with is… Should the updateBoard() method go into the MainActivity.java file or the ScoreClock.java file?

The updateBoard method will be accessing the android fields/variables and changing the values of TextViews and such, so I’m thinking that it should be placed in MainActivity.java.

Could someone please clarify?

  • 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-15T19:57:00+00:00Added an answer on June 15, 2026 at 7:57 pm

    All code to update UI elements goes in the Activity or View itself. You can’t access any of that from the POJO. It sounds like you, like so many, are trying to make a game. I would suggest you learn Java first, then Android, THEN try to make a game. Don’t start with something as complicated as a game.

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

Sidebar

Related Questions

I'm creating my first android app that will make use of SQlite. I have
I'm creating my first android app (or attempting to anyway) and i have a
I'm creating an Android App with Db, Java and OOP. This is the source
I'm currently creating my first android app and I've a simple class 'Player' I
so here is the problem. I am currently creating an Android app that is
I am creating a app in android. In that i am using list view.
I am creating an app on android but after hearing about sencha that it
I have been creating an app for Android SDK 8 and it works fine.
I'm creating android app that has table layout for the main activity, and that
I am creating an Android app that will download and cache PDF files (the

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.