[android-developers] Re: Null pointer exception when finding views by Id

2008-03-31 Thread kaiping
Thanks for the help. I finally just trashed both the xml and class files and rewrote then. It works now, I think it had to do with the DatePicker. Thanks for the help. KaiPing On Mar 28, 8:07 pm, Peli <[EMAIL PROTECTED]> wrote: > Which is the line that causes the null-pointer exception? The c

[android-developers] Re: Null pointer exception when finding views by Id

2008-03-28 Thread Peli
Which is the line that causes the null-pointer exception? The code lines you posted surely don't as they just assign the values. How do you know that the values are 'null' in onCreate()? What is in EditTransaction.java:47 ? Peli On Mar 28, 12:38 pm, kaiping <[EMAIL PROTECTED]> wrote: > OK, Did t

[android-developers] Re: Null pointer exception when finding views by Id

2008-03-28 Thread kaiping
OK, Did that and it still has the same error On Mar 27, 11:43 pm, Peli <[EMAIL PROTECTED]> wrote: > Sometimes R.java is corrupted. It helps to clean everything either > from within Eclipse or manually (delete bin/ and R.java) and rebuild > from scratch. > > Peli > > On Mar 27, 2:44 pm,kaiping<[EM

[android-developers] Re: Null pointer exception when finding views by Id

2008-03-27 Thread Peli
Sometimes R.java is corrupted. It helps to clean everything either from within Eclipse or manually (delete bin/ and R.java) and rebuild from scratch. Peli On Mar 27, 2:44 pm, kaiping <[EMAIL PROTECTED]> wrote: > I am sure, Actually the R.id.account_name was a type I forgot to fix. > But, even th

[android-developers] Re: Null pointer exception when finding views by Id

2008-03-27 Thread kaiping
I am sure, Actually the R.id.account_name was a type I forgot to fix. But, even the once that are in there return null. On Mar 27, 12:16 am, "Dan U." <[EMAIL PROTECTED]> wrote: > Are you sure ALL the findViewById return null? This one does for sure: > mDescription = (EditText) findViewById(R.id.a

[android-developers] Re: Null pointer exception when finding views by Id

2008-03-26 Thread Dan U.
Are you sure ALL the findViewById return null? This one does for sure: mDescription = (EditText) findViewById(R.id.account_name); since there is no account_name id in your layout. On Mar 26, 6:19 am, kaiping <[EMAIL PROTECTED]> wrote: > Thanks for the idea. I have confirmed that the file is name

[android-developers] Re: Null pointer exception when finding views by Id

2008-03-26 Thread kaiping
Thanks for the idea. I have confirmed that the file is named transaction_edit.xml. On Mar 26, 3:54 am, "Dan U." <[EMAIL PROTECTED]> wrote: > Well, he needs to have the filename be transaction_edit.xml. Not sure > if it is. > > On Mar 25, 5:29 am, Rick Genter <[EMAIL PROTECTED]> wrote: > > > Don'

[android-developers] Re: Null pointer exception when finding views by Id

2008-03-25 Thread Dan U.
Well, he needs to have the filename be transaction_edit.xml. Not sure if it is. On Mar 25, 5:29 am, Rick Genter <[EMAIL PROTECTED]> wrote: > Don't you need to name your layout "transaction_edit" in the XML file? > > On Mar 25, 2008, at 5:26 AM, kaiping wrote: > > > > > > > Hi, For one of my Activ

[android-developers] Re: Null pointer exception when finding views by Id

2008-03-25 Thread Rick Genter
Don't you need to name your layout "transaction_edit" in the XML file? On Mar 25, 2008, at 5:26 AM, kaiping wrote: > > Hi, For one of my Activities All the findViewById() function returns > is null. I am really astonished by this behaviour because this same > function works fine in other parts o