HelloWorld problems

by maciejg » Wed, 29 Apr 2009 15:04:12 GMT


Sponsored Links
 Hi,
I've just installed the SDK and followed the instructions in 'Hello
World' section. Although everything seemed fine Eclipse keep returning
the 'Failed to find an AVD compatible with target 'Android 1.5'.
Launch aborted.' error.
I have created the AVD with 'android create avd --target 1 --name
myavd' command as instructed.

After running the 'android list avd' command I noticed that an AVD
with Android 1.1 is the only one available. I did create another
project and used the Android 1.1 and everything seems to work. But the
questions are: shall I change the AVD to 1.5? How? Why the default is
1.1?

Thanks in advance for any replies.
Maciej

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



HelloWorld problems

by peter.kullm...@googlemail.com » Thu, 30 Apr 2009 02:05:51 GMT


 Hi,


Probably, because there isn't one.


Well, yes, the one you created. If you want to see the available
*targets*, use

android list targets

But you still have to create an avd for that target to have one
available.


You can either change the API level of your failing app to 1.1 in the
properties dialog of the project or use an appropriate avd which is
created by

android create avd --target 3 --name myavd-1.5

Peter

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


Sponsored Links


Other Threads

1. Android 1.6 on ADP1 Force close

Hello everyone!

I have just updated my ADP1 to the latest 1.6 version. During
installation everything went ok. But every time when my phone boots i
receive Force Close error regardin Google Partner Setup (process
com.google.android.partnersetup). Could someon please tell me what is
this about?

Best regards,
Sava

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

2. Showing a Toast or Activity on top of another application

Hello,
I have an application which runs a background thread which eventually
updates listeners on some incoming event.
When I'm in this listeners' code, I want to be able to either show a
Toast or a new Activity on top of the screen, regardless of what is
running in this moment - but to be able to come back to it (add on top
of the current stack, even if it's another application).
By now I didn't succeed in doing that in any way.

This is one attempt (inside my listener, which is called from a worker
thread):

                    runOnUiThread(new Runnable() {

                         public void run() {
                              Toast.makeText(getApplicationContext(),
"toast", Toast.LENGTH_LONG).show();

                         }
                    });


It shows the toast when I am in my original application, but not when
I'm in background.
I put a breakpoint on the line with the toast showing, and I know that
I get there, but it does nothing.

Do you have any idea?

Thanks ahead!

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

3. sending an event / intent to an AppWidgetProvider

4. Instead of android:layout_marginLeft="100px" can we mentioned it in percentage??

5. Remote View setString

6. Spreadsheet View

7. Problems with the tutorials and SDK/Emulator 1.6