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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:33:07+00:00 2026-06-17T16:33:07+00:00

I’ve just started coding in Android,below shown is Simple calculator with basic operations,when i

  • 0

I’ve just started coding in Android,below shown is Simple calculator with basic operations,when i run it on my SONY ERICSSON LIVE WITH WALKMAN,i recieve message as “Unfortunately CACULATOR has stopped”
Below shown is Console output:

[2013-01-22 11:42:52 - calci] ------------------------------
[2013-01-22 11:42:52 - calci] Android Launch!
[2013-01-22 11:42:52 - calci] adb is running normally.
[2013-01-22 11:42:52 - calci] Performing com.example.calci.MainActivity activity launch
[2013-01-22 11:42:54 - calci] Uploading calci.apk onto device 'BX902W2BWH'
[2013-01-22 11:42:54 - calci] Installing calci.apk...
[2013-01-22 11:42:57 - calci] Success!
[2013-01-22 11:42:57 - calci] Starting activity com.example.calci.MainActivity on device BX902W2BWH
[2013-01-22 11:42:58 - calci] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.calci/.MainActivity }

Here is LogCat window message:

01-22 11:42:32.071: D/AndroidRuntime(4046): Shutting down VM
01-22 11:42:32.071: W/dalvikvm(4046): threadid=1: thread exiting with uncaught exception (group=0x2b542210)
01-22 11:42:32.081: E/AndroidRuntime(4046): FATAL EXCEPTION: main
01-22 11:42:32.081: E/AndroidRuntime(4046): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.calci/com.example.calci.MainActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class android.widget.RelativeLayout
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1967)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1992)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.app.ActivityThread.access$600(ActivityThread.java:127)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1158)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.os.Handler.dispatchMessage(Handler.java:99)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.os.Looper.loop(Looper.java:137)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.app.ActivityThread.main(ActivityThread.java:4441)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at java.lang.reflect.Method.invokeNative(Native Method)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at java.lang.reflect.Method.invoke(Method.java:511)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at dalvik.system.NativeStart.main(Native Method)
01-22 11:42:32.081: E/AndroidRuntime(4046): Caused by: android.view.InflateException: Binary XML file line #1: Error inflating class android.widget.RelativeLayout
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.view.LayoutInflater.createView(LayoutInflater.java:606)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.view.LayoutInflater.onCreateView(LayoutInflater.java:653)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:678)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.app.Activity.setContentView(Activity.java:1835)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at com.example.calci.MainActivity.onCreate(MainActivity.java:21)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.app.Activity.performCreate(Activity.java:4465)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1931)
01-22 11:42:32.081: E/AndroidRuntime(4046):     ... 11 more
01-22 11:42:32.081: E/AndroidRuntime(4046): Caused by: java.lang.reflect.InvocationTargetException
01-22 11:42:32.081: E/AndroidRuntime(4046):     at java.lang.reflect.Constructor.constructNative(Native Method)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.view.LayoutInflater.createView(LayoutInflater.java:586)
01-22 11:42:32.081: E/AndroidRuntime(4046):     ... 23 more
01-22 11:42:32.081: E/AndroidRuntime(4046): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f050001 a=-1 r=0x7f050001}
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.content.res.Resources.loadDrawable(Resources.java:1897)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.view.View.<init>(View.java:2804)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.view.View.<init>(View.java:2741)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.view.ViewGroup.<init>(ViewGroup.java:412)
01-22 11:42:32.081: E/AndroidRuntime(4046):     at android.widget.RelativeLayout.<init>(RelativeLayout.java:179)
01-22 11:42:32.081: E/AndroidRuntime(4046):     ... 26 more
01-22 11:43:03.361: D/AndroidRuntime(4197): Shutting down VM
01-22 11:43:03.361: W/dalvikvm(4197): threadid=1: thread exiting with uncaught exception (group=0x2b542210)
01-22 11:43:03.371: E/AndroidRuntime(4197): FATAL EXCEPTION: main
01-22 11:43:03.371: E/AndroidRuntime(4197): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.calci/com.example.calci.MainActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class android.widget.RelativeLayout
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1967)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1992)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.app.ActivityThread.access$600(ActivityThread.java:127)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1158)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.os.Handler.dispatchMessage(Handler.java:99)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.os.Looper.loop(Looper.java:137)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.app.ActivityThread.main(ActivityThread.java:4441)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at java.lang.reflect.Method.invokeNative(Native Method)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at java.lang.reflect.Method.invoke(Method.java:511)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at dalvik.system.NativeStart.main(Native Method)
01-22 11:43:03.371: E/AndroidRuntime(4197): Caused by: android.view.InflateException: Binary XML file line #1: Error inflating class android.widget.RelativeLayout
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.view.LayoutInflater.createView(LayoutInflater.java:606)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.view.LayoutInflater.onCreateView(LayoutInflater.java:653)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:678)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.app.Activity.setContentView(Activity.java:1835)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at com.example.calci.MainActivity.onCreate(MainActivity.java:21)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.app.Activity.performCreate(Activity.java:4465)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1931)
01-22 11:43:03.371: E/AndroidRuntime(4197):     ... 11 more
01-22 11:43:03.371: E/AndroidRuntime(4197): Caused by: java.lang.reflect.InvocationTargetException
01-22 11:43:03.371: E/AndroidRuntime(4197):     at java.lang.reflect.Constructor.constructNative(Native Method)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.view.LayoutInflater.createView(LayoutInflater.java:586)
01-22 11:43:03.371: E/AndroidRuntime(4197):     ... 23 more
01-22 11:43:03.371: E/AndroidRuntime(4197): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f050001 a=-1 r=0x7f050001}
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.content.res.Resources.loadDrawable(Resources.java:1897)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.view.View.<init>(View.java:2804)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.view.View.<init>(View.java:2741)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.view.ViewGroup.<init>(ViewGroup.java:412)
01-22 11:43:03.371: E/AndroidRuntime(4197):     at android.widget.RelativeLayout.<init>(RelativeLayout.java:179)
01-22 11:43:03.371: E/AndroidRuntime(4197):     ... 26 more

Sorry if i’m not able to identify simple errors..!

Here is my activity_main.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@style/AppTheme"
    tools:context=".MainActivity" >

    <EditText
        android:id="@+id/editText1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:layout_marginLeft="29dp"
        android:layout_marginTop="22dp"
        android:ems="10"
        android:hint="@string/enter_first_number"
        android:inputType="number" >

        <requestFocus />
    </EditText>

    <EditText
        android:id="@+id/editText2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/editText1"
        android:layout_alignRight="@+id/editText1"
        android:layout_below="@+id/editText1"
        android:layout_marginTop="26dp"
        android:ems="10"
        android:hint="Enter Second Number"
        android:inputType="number" />

    <Button
        android:id="@+id/button2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBaseline="@+id/button1"
        android:layout_alignBottom="@+id/button1"
        android:text="SUB" />

    <Button
        android:id="@+id/button3"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignRight="@+id/button1"
        android:layout_marginBottom="45dp"
        android:text="MUL" />

    <Button 
        android:id="@+id/button4"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBottom="@+id/button3"
        android:layout_alignLeft="@+id/button2"
        android:text="DIV" />

    <Button
        android:id="@+id/button1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignRight="@+id/editText2"
        android:layout_below="@+id/editText2"
        android:layout_marginTop="66dp"
        android:text="ADD" />

    <TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@+id/button2"
        android:layout_alignLeft="@+id/editText2"
        android:layout_alignRight="@+id/button1"
        android:layout_marginBottom="24dp"
        android:hint="RESULT"
        android:text="RESULT" />

</RelativeLayout>
  • 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-17T16:33:08+00:00Added an answer on June 17, 2026 at 4:33 pm

    What is this: android:background=”@style/AppTheme” ?
    This is the problem.

    You cant set Theme as a background. It should be color or drawable.

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

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to run a str_replace or preg_replace which looks for certain words
I am doing a simple coin flipping experiment for class that involves flipping a
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
Does anyone know how can I replace this 2 symbol below from the string
I have two tables with like below codes: Table: Accounts id | username |
I'm making a simple page using Google Maps API 3. My first. One marker
Let's say I'm outputting a post title and in our database, it's Hello Y&#8217;all

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.