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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:23:26+00:00 2026-06-01T23:23:26+00:00

I am developing RSS Feeds application from the basic google resource folder. Right now

  • 0

I am developing RSS Feeds application from the basic google resource folder.
Right now I am display all three contents as suggested into example.

1.Contacts.
2.Photos.
3.RSS Feed

here is link:

RSS FIELD -xmladapters

I managed code very well as per my requirement .only change the package and Project name.
But its display Fatal Error:

LOGCAT:

 04-09 17:40:02.894: E/AndroidRuntime(770): FATAL EXCEPTION: main
    04-09 17:40:02.894: E/AndroidRuntime(770): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.satyamdswt.agreader/com.satyamdswt.agreader.ContactsListActivity}: java.lang.IllegalArgumentException: The layout specified in contacts does not exist
    04-09 17:40:02.894: E/AndroidRuntime(770):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
    04-09 17:40:02.894: E/AndroidRuntime(770):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
    04-09 17:40:02.894: E/AndroidRuntime(770):  at android.app.ActivityThread.access$1500(ActivityThread.java:117)
    04-09 17:40:02.894: E/AndroidRuntime(770):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
    04-09 17:40:02.894: E/AndroidRuntime(770):  at android.os.Handler.dispatchMessage(Handler.java:99)
    04-09 17:40:02.894: E/AndroidRuntime(770):  at android.os.Looper.loop(Looper.java:123)
    04-09 17:40:02.894: E/AndroidRuntime(770):  at android.app.ActivityThread.main(ActivityThread.java:3683)
    04-09 17:40:02.894: E/AndroidRuntime(770):  at java.lang.reflect.Method.invokeNative(Native Method)
    04-09 17:40:02.894: E/AndroidRuntime(770):  at java.lang.reflect.Method.invoke(Method.java:507)
    04-09 17:40:02.894: E/AndroidRuntime(770):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    04-09 17:40:02.894: E/AndroidRuntime(770):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
    04-09 17:40:02.894: E/AndroidRuntime(770):  at dalvik.system.NativeStart.main(Native Method)
    04-09 17:40:02.894: E/AndroidRuntime(770): Caused by: java.lang.IllegalArgumentException: The layout specified in contacts does not exist
    04-09 17:40:02.894: E/AndroidRuntime(770):  at com.satyamdswt.agreader.Adapters$XmlCursorAdapterParser.parse(Adapters.java:219)
    04-09 17:40:02.894: E/AndroidRuntime(770):  at com.satyamdswt.agreader.Adapters.createCursorAdapter(Adapters.java:168)
    04-09 17:40:02.894: E/AndroidRuntime(770):  at com.satyamdswt.agreader.Adapters.createAdapterFromXml(Adapters.java:151)
    04-09 17:40:02.894: E/AndroidRuntime(770):  at com.satyamdswt.agreader.Adapters.loadAdapter(Adapters.java:105)
    04-09 17:40:02.894: E/AndroidRuntime(770):  at com.satyamdswt.agreader.Adapters.loadAdapter(Adapters.java:92)
    04-09 17:40:02.894: E/AndroidRuntime(770):  at com.satyamdswt.agreader.ContactsListActivity.onCreate(ContactsListActivity.java:12)
    04-09 17:40:02.894: E/AndroidRuntime(770):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
    04-09 17:40:02.894: E/AndroidRuntime(770):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
    04-09 17:40:02.894: E/AndroidRuntime(770):  ... 11 more

In LogCat you see that:

com.satyamdswt.agreader/com.satyamdswt.agreader.ContactsListActivity

I don’t know why this happened two times.

For more I display my Manifest.xml here:
Manifest.xml

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

    <uses-sdk android:minSdkVersion="10" />
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.READ_CONTACTS"/>

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

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

        </activity>

         <activity android:name="PhotosListActivity"
                  android:label="@string/photos_list_activity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity android:name=".AGRssReaderActivity">
             <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>

</manifest>

Please guide me where is Error.

ContactListActivity.java

public class ContactsListActivity extends ListActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.contacts_list);
        setListAdapter(Adapters.loadAdapter(this,R.xml.contacts ));
    }

}

EDITED
contacts.xml

    <?xml version="1.0" encoding="utf-8"?>
<cursor-adapter  xmlns:android="com.satyamdswt.agreader"
     xmlns:app="http://schemas.android.com/apk/res/com.satyamdswt.agreader"
    android:layout_width="@layout/contact_item"
    app:selection="has_phone_number = 1 "
    app:uri="content://com.satyamdswt.contacts/contacts" >



     <bind
        app:from="display_name"
        app:to="@id/name" 
         app:as="string"/>

    <bind
        app:as="drawable"
        app:from="starred"
        app:to="@id/star" >
        <map
            app:fromValue="0"
            app:toValue="@android:drawable/star_big_off" />
        <map
            app:fromValue="1"
            app:toValue="@android:drawable/star_big_on" />
    </bind>
    <bind
        app:as="com.satyamdswt.agreader.ContactPhotoBinder"
        app:from="_id"
        app:to="@id/name" />

</cursor-adapter>
  • 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-01T23:23:28+00:00Added an answer on June 1, 2026 at 11:23 pm

    I’ve recreated your error. Problem is in your res/xml/contacts.xml file

    Change this line:

    xmlns:app="com.satyamdswt.agreader"
    

    to this line:

    xmlns:app="http://schemas.android.com/apk/res/com.satyamdswt.agreader"
    

    It is right format of XML namespace of your app: http://schemas.android.com/apk/res/package_name

    Upd: You shouldn’t change other parameters in the <cursor-adapter> tag. Right form:

    <cursor-adapter xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res/com.satyamdswt.agreader"
        app:uri="content://com.android.contacts/contacts"
        app:selection="has_phone_number=1"
        app:layout="@layout/contact_item">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a Rails application that will access a lot of RSS feeds
I am developing an application that reads a RSS channel from a website. The
I am currently developing an iPhone application which loads data from an RSS feed
i am developing an android app that fetches an RSS feed, now i want
I am developing a RSS application in which title are in Japanese language. I
I am currently developing a dynamic RSS feed that will automatically pull articles from
I am developing a Facebook Iframe application using PHP which opens an RSS feed
I'm developing RSS feed widget for Magento. Now I need to use Magento cache
im developing an app that retrieves a rss feed from a website but i
I am developing an Android application. In this application I want the RSS feed

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.