0

I have just started working on android apps using eclipse. I created the 'helloWorld' app which I tried to run on an emulator of my own created avd device.

Earlier it was showing 'unfortunately app has stopped', so I tried to resolve it by increasing the Launch Timeout time and it is now 10000 ms. But still it is not resolved. What should I do? Please help.

My xml file is :

<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:paddingBottom="@dimen/activity_vertical_margin"
     android:paddingLeft="@dimen/activity_horizontal_margin"
     android:paddingRight="@dimen/activity_horizontal_margin"
     android:paddingTop="@dimen/activity_vertical_margin"
     tools:context="course.examples.helloandroid.MainActivity" >

    <TextView
        android:id="@+id/helloWorld"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

</RelativeLayout>

and My MainActivity.java file

MainActivity.java

and this my logcat file :

logCat file

and this is happening for any avd device instance that I am creating. Please help.

EDIT : my Manifest.xml file:

Manifest.xml

POOJA GUPTA
  • 2,295
  • 7
  • 32
  • 60

1 Answers1

1

This happens sometimes in AVD devices...I would suggest connect a android phone and try with it. It gives you the correct output. Moreover you can also try to put ""hello-world" in android:text="hello world" in the xml file and remove the set method in java file. i hope it helps but do try with an android based device. i had the same problem and it was solved when I used a real device

Abhinav Pandey
  • 270
  • 8
  • 21