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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:49:28+00:00 2026-06-08T16:49:28+00:00

I am a PHP developer, who is new to Android development and Java so

  • 0

I am a PHP developer, who is new to Android development and Java so please bear with me.

I am developing an extremely simple app for testing and learning purposes.

when the user clicks my app icon, they are presented with a loading screen. I have a TextView with a progress bar underneath.

TextView XML code:

<TextView
        android:id="@+id/loadingMessage1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@+id/progressBar1"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="22dp"
        android:text="@string/loading1" />

The value is set to the string loading1 in strings.xml

<string name="loading1">Loading Message 1</string>

In my loadingscreen.java i have:

package com.example.myfirstapp;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.TextView;


public class LoadingScreen extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_loading_screen);

        TextView loadingMessage1 = (TextView)this.findViewById(R.id.loadingMessage1);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_loading_screen, menu);
        return true;
    }
}

Notice I have the code:

TextView loadingMessage1 = (TextView)this.findViewById(R.id.loadingMessage1);

Which I think references the text view.

What I want to happen is that every 3 seconds a different message appears.

So loading message 1… (3 secs) loading message 2… (3 secs) loading message 3..

after loading message 3 i would like a button to replace the progress bar.

  • 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-08T16:49:31+00:00Added an answer on June 8, 2026 at 4:49 pm

    You can use the Handler class:

    final Handler handler = new Handler();
    handler.post(new Runnable(){
    
        @Override
        public void run(){
            // change your text here
            handler.postDelayed(this, 3*1000L);
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a PHP developer who is seeking some guidance. I am developing a
I'm an iPhone developer who's new to web development. I'm experienced HTML and CSS,
I'm an experienced asp.net developer who has begun developing in php, specifically in wordpress.
I'm a PHP/MySQL developer who hasn't used any form of versioning aside from copy/paste
We have a flash developer who uses calls a file called proxy.php with the
I'm a PHP developer who has to work on ASP.net projects and I'm wondering
I'm a Java developer who has turned to the dark side over the last
Afternoon all. I'm a php web developer who dips his toe in and out
I'm an iOS developer who has only passing knowledge of front-end web development, but
I'm a PHP web developer, who is looking for a well proven method for

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.