Hello.

It would really help if you posted the errors ou are getting.  Is there any
logcat output? 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of TheJediSlayer
Sent: Thursday, September 03, 2009 11:42 AM
To: Android Beginners
Subject: [android-beginners] Android Beginner


Hello,
I am a new beginner at Android development. I plan to get the HTC Hero
coming up soon in the next month and I am excited to use Android on the new
mobile device. Anyways, my question I had today was a problem that I've been
encountering a lot lately with the SDK/Eclipse part of Android. A tutorial
named HelloGridView that is located in the user- documentation of the SDK
gives a tutorial on how to make a basic slide- show picture based
application. I follow the instructions, but when I place this line of code:

File to open:  HelloGridView java file in SRC ________

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    GridView gridview = (GridView) findViewById(R.id.gridview);
    gridview.setAdapter(new ImageAdapter(this)); }

________

COPY AND PASTED OVER ABOVE LINE OF CODE:

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}

________

I get a bunch of underscore red-line errors and I'm not sure about how to go
about fixing them. Without fixing them, I can't use the application in
Eclipse, and so on and so forth. I'm very new at this stuff and I can't seem
to understand why I'm getting these underline- red errors. Any help would be
much appreciated.

Tyler


No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 9/2/2009
6:03 PM


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to