Emulator won't run program. Red line goes back and forth.

by georgexu316 » Fri, 27 Jun 2008 18:03:18 GMT


Sponsored Links
 I followed Google's beginner guide by creating a simple Hello Android
program ( http://code.google.com/android/intro/hello-android.html ),
but it won't run. I am using Eclipse. After I run it, the emulator
comes up, and there is a red line on the Emulator phone that goes back
and forth and the program won't run.
Please help.
Thank you.

--~--~---------~--~----~------------~-------~--~----~



Emulator won't run program. Red line goes back and forth.

by jdavidandroid » Fri, 27 Jun 2008 20:38:18 GMT


 Hi georgexu316.

You have to be patient, cause the emulator takes around 5 minutes to
launch the frst time.  Just leave it for some time, and then the
program will run.  Another thing you can do to check if your
installation is correct is to execute the emulator.exe file that is
under the android/tools folder.  In either case, you will have to wait
the first time some minutes.  Hope this works!
A recommendation: before posting questions, you can actually search
for similar problems (upper left corner of the group), cause this
error has been reported several times before.

Juan.

georgexu316 ha escrito:
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Starting the messaging preferences - not possible? Really?

Hello!

Is it really not possible to start the preferences activity of the
default messaging application? It would be ok as well to start the
messaging application at the conversation list. Is there no way to do
this?

Regards.
--~--~---------~--~----~------------~-------~--~----~

2. Error: android.view.ViewGroup.onLayout, abstract method not implemented.

Hi.  I am new to Java; please excuse my ignorance.

I am trying to use ViewGroup in main.xml.  However I am getting a
runtime exception because onLayout method isn't implemented.  How do I
implement this method?  The following is my partial code from
main.xml:

        <ViewGroup android:id="@+id/controlPanel"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content">
                <Button android:id="@+id/alphaButton"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="@+string/alpha" />
                <Button android:id="@+id/rotateButton"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="@+string/rotate" />
        </ViewGroup>

and below in the application I try to implement onLayout method, but I
the autocompletion doesn't show 'onLayout':

controlPanel = (ViewGroup)findViewById(R.id.controlPanel);
//controlPanel ...here I get no autocompletion for onLayout

--~--~---------~--~----~------------~-------~--~----~

3. amazonmp3 on dev phone

4. Eclipse or Netbeans

5. Camera preview on a surface defined in XML?

6. Would the second partition on SD card be mounted and used?

7. WPA-Enterprise To Be Offered?