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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:05:23+00:00 2026-05-30T19:05:23+00:00

This is my .java code public class MainHelp extends PreferenceActivity { @Override public void

  • 0

This is my .java code

   public class MainHelp extends PreferenceActivity {

        @Override
        public void onCreate(Bundle savedInstanceState){
            super.onCreate(savedInstanceState);
                addPreferencesFromResource(R.xml.help_main);
             }
       }

and this is the layout

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >

    <Preference 
        android:title="Commands Documentation"
        android:key="@string/commands"/>

     <Preference
         android:title = "How To Use"
         android:key="@string/howToUse"/>
     <Preference 
         android:title="Write Us"
         android:key="@string/writeUs"/> 
     <Preference 
        android:title="About"
        android:key="@string/aboutSuppApp"/> 
</PreferenceScreen>

When I run the program the above code works perfectly….But, when i hit home button and try to go to this Activity, I get error saying

E/AndroidRuntime(  495): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime(  495): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.suppapp/com.suppapp.help.MainHelp}: android.view.InflateException: Binary XML file line #10: Error inflating class prferences
    E/AndroidRuntime(  495):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
    E/AndroidRuntime(  495):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
    E/AndroidRuntime(  495):    at android.app.ActivityThread.access$2200(ActivityThread.java:119)
    E/AndroidRuntime(  495):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
    E/AndroidRuntime(  495):    at android.os.Handler.dispatchMessage(Handler.java:99)
    E/AndroidRuntime(  495):    at android.os.Looper.loop(Looper.java:123)
    E/AndroidRuntime(  495):    at android.app.ActivityThread.main(ActivityThread.java:4363)
    E/AndroidRuntime(  495):    at java.lang.reflect.Method.invokeNative(Native Method)
    E/AndroidRuntime(  495):    at java.lang.reflect.Method.invoke(Method.java:521)
    E/AndroidRuntime(  495):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
    E/AndroidRuntime(  495):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
    E/AndroidRuntime(  495):    at dalvik.system.NativeStart.main(Native Method)
    E/AndroidRuntime(  495): Caused by: android.view.InflateException: Binary XML file line #10: Error inflating class prferences
    E/AndroidRuntime(  495):    at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:441)
    E/AndroidRuntime(  495):    at android.preference.GenericInflater.rInflate(GenericInflater.java:481)
    E/AndroidRuntime(  495):    at android.preference.GenericInflater.inflate(GenericInflater.java:326)
    E/AndroidRuntime(  495):    at android.preference.GenericInflater.inflate(GenericInflater.java:263)
    E/AndroidRuntime(  495):    at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:254)
    E/AndroidRuntime(  495):    at android.preference.PreferenceActivity.addPreferencesFromResource(PreferenceActivity.java:253)
    E/AndroidRuntime(  495):    at com.suppapp.help.MainHelp.onCreate(MainHelp.java:19)
    E/AndroidRuntime(  495):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
    E/AndroidRuntime(  495):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
    E/AndroidRuntime(  495):    ... 11 more
    E/AndroidRuntime(  495): Caused by: java.lang.ClassNotFoundException: android.preference.prferences in loader dalvik.system.PathClassLoader@44c06600
    E/AndroidRuntime(  495):    at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
    E/AndroidRuntime(  495):    at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
    E/AndroidRuntime(  495):    at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
    E/AndroidRuntime(  495):    at android.preference.GenericInflater.createItem(GenericInflater.java:375)
    E/AndroidRuntime(  495):    at android.preference.GenericInflater.onCreateItem(GenericInflater.java:417)
    E/AndroidRuntime(  495):    at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:428)
    E/AndroidRuntime(  495):    ... 19 more 

I tried to link my activity with the other .xml file but getting the same error again!! Even Caused by: android.view.InflateException: Binary XML file line #10: Error inflating class prferences shows the same line number(#10) for other .xml files

  • 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-30T19:05:24+00:00Added an answer on May 30, 2026 at 7:05 pm

    i changed the version code(inside manifest file) and re-installed the app…its working fine now.

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

Sidebar

Related Questions

Here I found this code: import java.awt.*; import javax.swing.*; public class FunWithPanels extends JFrame
In this Java code: public class Main { public static void main(String[] args) {
This is my java code public class TestClient { public int a=55; public void
This Java code: public class XYZ { public static void main(){ int toyNumber =
Why do I get compiler errors with this Java code? 1 public List<? extends
Is it possible to convert this java code snippet to php? public void testBalanceReturnsToZeroOnVending()
Is there a way to make this code work? LogonControl.java @Audit(AuditType.LOGON) public void login(String
Can you please tell me how does this java code work? : public class
Assume this Java code: public class A { public A(String g) { x +=
I have following class in Java code: public class CHRTreeCreator extends IndexCreator { ...

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.