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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:39:50+00:00 2026-05-31T16:39:50+00:00

I started a Android project on eclipse and make a simple loading bar, as

  • 0

I started a Android project on eclipse and make a simple loading bar, as follow:

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    LOG = true;

    // Initialize a GUI
    if(LOG) Log.d(TAG, "starting  content view and progress bar notifications");

    //initialize resource 
    // i put try to check the Exception
    try {
        setContentView(R.layout.load);
        RelativeLayout rl = (RelativeLayout) findViewById(R.id.loading_layout);
        mProgress = (ProgressBar) rl.findViewById(R.id.progressBarLoad);
        mProgressText = (TextView) rl.findViewById(R.id.textProgressLoad);
    } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }

    if(LOG) Log.d(TAG, "bar notifications initialized");
    Thread t = new Thread(new Runnable() {
        public void run() {
            try {
                if(LOG){
                    Log.d(TAG, "starting update "+mProgress.toString());
                    Log.d(TAG, "starting update "+mProgressText.toString());
                }

                while (mProgressStatus<100) {
                    //Do all process here
                    /*
                    if(mProgress % getNumberSubProcess() == 0){

                    }
                    */
                    LoadFEIAppActivity.this.update();
                    mProgressStatus += 0.01d; 
                }

                if(mProgressStatus==100){
                    LoadFEIAppActivity.this.update();
                    if(LOG) Log.d(TAG, "DONE");
                    return;
                }
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }

    });

    t.start();

    /*
    if(mProgressStatus==100){
        Intent intent = new Intent(this, RegisterEmail.class);
        startActivity(intent);
    } 
     */     
}

But the Application not runs as expected And i receive many Exceptions:

**03-21 16:25:51.977: W/System.err(363): android.view.InflateException: Binary XML file line #16: Error inflating class <unknown>
03-21 16:25:51.987: W/System.err(363):  at android.view.LayoutInflater.createView(LayoutInflater.java:513)
03-21 16:25:51.997: W/System.err(363):  at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
03-21 16:25:51.997: W/System.err(363):  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
03-21 16:25:51.997: W/System.err(363):  at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
03-21 16:25:52.007: W/System.err(363):  at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
03-21 16:25:52.017: W/System.err(363):  at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
03-21 16:25:52.017: W/System.err(363):  at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
03-21 16:25:52.017: W/System.err(363):  at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
03-21 16:25:52.028: W/System.err(363):  at android.app.Activity.setContentView(Activity.java:1622)
03-21 16:25:52.028: W/System.err(363):  at unicamp.ia.feia.LoadFEIAppActivity.onCreate(LoadFEIAppActivity.java:45)
03-21 16:25:52.037: W/System.err(363):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-21 16:25:52.047: W/System.err(363):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
03-21 16:25:52.047: W/System.err(363):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
03-21 16:25:52.057: W/System.err(363):  at android.app.ActivityThread.access$2200(ActivityThread.java:119)
03-21 16:25:52.067: W/System.err(363):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
03-21 16:25:52.077: W/System.err(363):  at android.os.Handler.dispatchMessage(Handler.java:99)
03-21 16:25:52.087: W/System.err(363):  at android.os.Looper.loop(Looper.java:123)
03-21 16:25:52.087: W/System.err(363):  at android.app.ActivityThread.main(ActivityThread.java:4363)
03-21 16:25:52.097: W/System.err(363):  at java.lang.reflect.Method.invokeNative(Native Method)
03-21 16:25:52.118: W/System.err(363):  at java.lang.reflect.Method.invoke(Method.java:521)
03-21 16:25:52.127: W/System.err(363):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
03-21 16:25:52.127: W/System.err(363):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
03-21 16:25:52.137: W/System.err(363):  at dalvik.system.NativeStart.main(Native Method)
03-21 16:25:52.137: W/System.err(363): Caused by: java.lang.reflect.InvocationTargetException
03-21 16:25:52.177: W/System.err(363):  at android.widget.TextView.<init>(TextView.java:320)
03-21 16:25:52.177: W/System.err(363):  at java.lang.reflect.Constructor.constructNative(Native Method)
03-21 16:25:52.189: W/System.err(363):  at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
03-21 16:25:52.197: W/System.err(363):  at android.view.LayoutInflater.createView(LayoutInflater.java:500)
03-21 16:25:52.207: W/System.err(363):  ... 22 more
03-21 16:25:52.207: W/System.err(363): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/progress_indeterminate_horizontal.xml from color state list resource ID #0x1030008
03-21 16:25:52.237: W/System.err(363):  at android.content.res.Resources.loadColorStateList(Resources.java:1813)
03-21 16:25:52.247: W/System.err(363):  at android.content.res.TypedArray.getColorStateList(TypedArray.java:289)
03-21 16:25:52.258: W/System.err(363):  at android.widget.TextView.<init>(TextView.java:627)
03-21 16:25:52.267: W/System.err(363):  ... 26 more
03-21 16:25:52.277: W/System.err(363): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/progress_indeterminate_horizontal.xml from xml type colorstatelist resource ID #0x1030008
03-21 16:25:52.297: W/System.err(363):  at android.content.res.Resources.loadXmlResourceParser(Resources.java:1912)
03-21 16:25:52.307: W/System.err(363):  at android.content.res.Resources.loadColorStateList(Resources.java:1808)
03-21 16:25:52.317: W/System.err(363):  ... 28 more
03-21 16:25:52.317: W/System.err(363): Caused by: java.io.FileNotFoundException: res/drawable/progress_indeterminate_horizontal.xml
03-21 16:25:52.357: W/System.err(363):  at android.content.res.AssetManager.openXmlAssetNative(Native Method)
03-21 16:25:52.367: W/System.err(363):  at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:469)
03-21 16:25:52.377: W/System.err(363):  at android.content.res.Resources.loadXmlResourceParser(Resources.java:1894)
03-21 16:25:52.377: W/System.err(363):  ... 29 more**

Researching on stackoverflow, i found some similar questions, but none with pleny solution:

  • Clean and rebuild projects (not works)
  • Check all resources (all there in res/), i.e, values/ strings/ layout/
  • I Check xdpi folders, they not have same density (I have one version for each photos): see Resources NotFoundException?

I think in two problems:

  • The density of photos affect the compilation process?
  • or eclipse is missing a necessary built in resources?I’m considering it because of this message Caused by: android.content.res.Resources$NotFoundException: File res/drawable/progress_indeterminate_horizontal.xml

Thanks for any 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-31T16:39:51+00:00Added an answer on May 31, 2026 at 4:39 pm

    check first you have res/drawable/progress_indeterminate_horizontal.xml ? then

    progress_indeterminate_horizontal.xml in this xml you have not some state of of your progressbar so its problem,

    see this link http://quickandroidblog.blogspot.in/2011/08/change-android-horizontal-progress-bar.html

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

Sidebar

Related Questions

I just started working on a new Eclipse Android project and want to make
I'm using Ubuntu Oneiric. I started my first Android project in Eclipse, and after
When i started my Android project i had a misunderstanding that every screen that's
I just started to develop my first android project. I want to add a
Ive inherited some code which started out as an Android project but really is
I have just started with android in Eclipse and now i want to do
I have just started with Android with the usual Hello World project template in
I recently started programming for Android using the Eclipse ADT. What I am frequently
Yesterday, I started having some problems with 9-patch images in Android and Eclipse Helios.
I am working on an Android project in Eclipse and debugging / testing using

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.