When you create your first Android application you normally have not
to do anything besides creating an Android project. The Eclipse ADT is
going to create all the needed resources for you.

Check the following


 - Your Eclipse:
for example
Version: 3.4.1
Build id: M20080911-1700

 - the Problems-tab in Eclipse editor
 - make sure that ADT is correctly installed
--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Sep 3, 8:49 am, leeuwerik <l...@qilium.com> wrote:
> I'm brand new to Android (although not to Eclipse and Java).
> Yesterday I installed ADT within Eclipse (always latest versions) both
> on Windows and XP.
> Then I try creating HelloWorld by following the tutorial.
>
> When creatin the android project I get an error on the line
> setContentView(R.layout.main) ==> R unknown.
>
> I tried ctr-shift-O ==> import android.R is added but the error
> remains.
>
> Undaunted I follow the tuturial and edit to create a TextView instead
> ==> application runs, i.e. I see a mobile terminal image with
> 'ANDROID' written in the centre. On XP it's strange: after a seemingly
> long time-out the text font changes and an icon (android) is added
> after the text.
>
> Next I try editing the resource .xml files as suggested in the
> tutorial in order to change the text. This also implies reintroducing
> the line with setContentView(R.layout.main) in lieu of the TextView.
> This time no error reported !!!!
>
> When inspecting main.xml, the new layout and text look OK. Yet when
> running the application I keep getting the same mobile picture, i.e.
> without the new text. It looks like the emulation doesn't work
> properly.
> I rebuilt the application from scratch and did another tutorial, with
> the same negative result.
>
> I must say that I'm lost.
> Can anyone help please ????
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to