[android-beginners] Understanding the basic overridden onCreate function

2008-12-13 Thread Doughy
I'm trying to understand the code for the basic onCreate function that is part of every application. @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } I understand the @Override, and the

[android-beginners] Re: Understanding the basic overridden onCreate function

2008-12-13 Thread Doughy
OK, I see. So basically, by calling super.onCreate (savedInstanceState) one is making sure that any code in the superclass gets run, and then the stuff that is custom to the new class. Thanks. On Dec 13, 1:31 pm, Mark Murphy mmur...@commonsware.com wrote: Doughy wrote: I'm trying

[android-beginners] Re: How to debug on an actual device?

2008-12-09 Thread Doughy
don't see the device listed, you probably need to setup udev (at least under ubuntu) to have the usb recognize. Anyone knows a good link to the udev config needed for the g1? (There should be one in the forum) On Dec 9, 2008 8:12 AM, Doughy [EMAIL PROTECTED] wrote: Thanks Ralf.  I'm using

[android-beginners] How to debug on an actual device?

2008-12-08 Thread Doughy
Can someone either tell me here, or point me to a link, that explains how to debug applications on an actual android device? I just got a G1, I have written a simple program using the Eclipse plugin, and now I would like to debug it on my actual phone. I can't seem to find any documentation on

[android-beginners] Best way to select data from file/db?

2008-11-29 Thread Doughy
I am writing a program that needs to randomly select a line from a file or db. At first thought, I was going to just create a simple text file that my program would read and store in a list. Then it would randomly select one of the items from the list. Is it better to store simple information

[android-beginners] Simple button callback

2008-11-22 Thread Doughy
Hello, I am trying to create a very simple program that will change the text of a label object when I click a button. I have created the button and the label using the XML file, but now I have no idea how I can write the callback when the user presses the button. I tried reading the help file

[android-beginners] Re: Simple button callback

2008-11-22 Thread Doughy
I only have a total of 7 samples in that directory. What version of the SDK are you running? On Nov 22, 5:52 am, Mark Murphy [EMAIL PROTECTED] wrote: Doughy wrote: I am trying to create a very simple program that will change the text of a label object when I click a button.  I have created

[android-beginners] Re: Simple button callback

2008-11-22 Thread Doughy
); answerLabel.setText(Test); } }; Is there a better way to do this? Is there a way to directly access the TextView without using findViewbyId and casting it to the appropriate type? On Nov 22, 1:14 pm, Mark Murphy [EMAIL PROTECTED] wrote: Doughy wrote: I only have