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

--~--~---------~--~----~------------~-------~--~----~
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