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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:35:02+00:00 2026-06-04T05:35:02+00:00

Hi every body i’m currently trying to solve a strange problem. I reduced as

  • 0

Hi every body i’m currently trying to solve a strange problem.
I reduced as mush as i could my app to show you clearly the problem.

I can launch my app with the main layout just like this:

public class AndroidReaderActivity extends Activity {
     @Override
     public void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     setContentView(R.layout.main);
}

With this main.xml

<?xml version="1.0" encoding="utf-8"?>
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/main"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
</ListView>

Nothing really new about that BUT if i add a new layout named list.xml within the layout directory my app crashes… i don’t understand. Here is the log (Once i add the new xml the program doesn’t find the main.xml ressource)

05-16 03:00:14.631: E/AndroidRuntime(4399): FATAL EXCEPTION: main
05-16 03:00:14.631: E/AndroidRuntime(4399): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.infotel/com.infotel.AndroidReaderActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f030001
05-16 03:00:14.631: E/AndroidRuntime(4399):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at android.app.ActivityThread.access$600(ActivityThread.java:123)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at android.os.Handler.dispatchMessage(Handler.java:99)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at android.os.Looper.loop(Looper.java:137)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at android.app.ActivityThread.main(ActivityThread.java:4424)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at java.lang.reflect.Method.invokeNative(Native Method)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at java.lang.reflect.Method.invoke(Method.java:511)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at dalvik.system.NativeStart.main(Native Method)
05-16 03:00:14.631: E/AndroidRuntime(4399): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030001
05-16 03:00:14.631: E/AndroidRuntime(4399):     at android.content.res.Resources.getValue(Resources.java:1018)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at android.content.res.Resources.loadXmlResourceParser(Resources.java:2105)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at android.content.res.Resources.getLayout(Resources.java:857)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at android.view.LayoutInflater.inflate(LayoutInflater.java:394)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at android.app.Activity.setContentView(Activity.java:1835)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at com.infotel.AndroidReaderActivity.onCreate(AndroidReaderActivity.java:92)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at android.app.Activity.performCreate(Activity.java:4465)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
05-16 03:00:14.631: E/AndroidRuntime(4399):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)

Thanks for your help guys 😀

EDIT

This is my list.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="100dip" >
    <ImageView 
        android:id="@+list/thumb"
        android:layout_width="60dip"
        android:layout_height="60dip"
        android:layout_centerVertical="true"
        android:layout_alignParentLeft="true"
        />
    <TextView
        android:id="@+list/text"
        android:layout_toRightOf="@+list/thumb"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="18dip"
        android:layout_marginLeft="10dip"
        android:layout_centerVertical="true"
        android:singleLine="true"
        android:ellipsize="end"
        android:textStyle="bold" 
        />
</RelativeLayout>

And my manifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.infotel"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="15" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity
            android:name=".AndroidReaderActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>
  • 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-04T05:35:02+00:00Added an answer on June 4, 2026 at 5:35 am

    There is no problem everything is fine , please once clean your project then run again,because your resources java file not properly build.

    or

    check once your project package name should be similar in manifest file.

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

Sidebar

Related Questions

hi every body can some one help me with thi problem i have a
hi every body I'm trying to open an image in a new window ,using
hey every body, i am making an android app which interacts with camera. i
hi every body i'm new to xercses C++dom parser.can anyone tell me can we
I'm trying to change the background color of the body every second but it
how can I check the id on every page's <body> tag and perform a
Instead of pasting $('html, body').animate({ scrollTop: 0}, 2500); for every input, can I write
Hi every body i am new in iPhone application development. In my application need
Hai am trying to set alarm for every 10 minutes.But its running first time
I want to report sth every new month via email. How can i do

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.