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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:37:35+00:00 2026-05-25T10:37:35+00:00

I cant find whats wrong with my code I am getting cannot be resolved

  • 0

I cant find whats wrong with my code I am getting cannot be resolved or is not a field on findViewById.

the problems lines are:

       playSeekBar = (ProgressBar) findViewById(R.id.progressBar1);
        buttonPlay = (Button) findViewById(R.id.buttonPlay);
         buttonStopPlay = (Button) findViewById(R.id.buttonStopPlay);

my xml code is:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
 android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ProgressBar android:id="@+id/progressBar1" android:layout_width="wrap_content"    android:layout_height="wrap_content"></ProgressBar>
<Button android:text="Button" android:id="@+id/buttonPlay" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
<Button android:text="Button" android:id="@+id/buttonStopPlay" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>

</LinearLayout>

my code is:

 public class radioActivite extends Activity implements OnClickListener {
 public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.radio_xml);




    initializeUIElements();

    initializeMediaPlayer();
}

private void initializeUIElements() {

       playSeekBar = (ProgressBar) findViewById(R.id.progressBar1);

    playSeekBar.setMax(100);
    playSeekBar.setVisibility(View.INVISIBLE);

    buttonPlay = (Button) findViewById(R.id.buttonPlay);
    buttonPlay.setOnClickListener(this);

    buttonStopPlay = (Button) findViewById(R.id.buttonStopPlay);

tried to clean the code but didn’t help me.
Thanks for the help!

  • 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-25T10:37:36+00:00Added an answer on May 25, 2026 at 10:37 am

    Try removing your R.java so that it is regenerated. This is often Eclipse that does not see your changes in your res/ directory.
    Another reason your R.java is not regenerated is you may have a problem in one of your resources (layout, styles, etc.)

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

Sidebar

Related Questions

Help! I cant find whats wrong. My code is up and mostly running and
I can't find whats the wrong with this script. Please help me! {elseif $text[i].text
I have this code,everything works fine but .css('color','red') rule is not getting applied.I tried
When you do: MyClass.class.someMethod() What exactly is the class field? I can't find it
I have been hunting all over my code and can't find the source of
I am getting the error Can't find Goal with an ID but I am
This is my code, which I can't even compile: /** * Find a project
Sorry for the silly question, but I cannot seem to find an answer on
I'm getting two compile errors: /home/sater/projects/MotionManager/videoProcess.cpp:11:1: error: a function-definition is not allowed here before
This has been getting on my nerves quite a bit because I can't find

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.