[android-developers] Android ICS Hardware Acceleration for setLayerType issue.

2011-12-27 Thread kaiping ken
*Situation: *I porting some Android codes from 2.2 to 4.0, and want to enable the HW acceleration(the Force GPU Rendering option) in this app. Then I found a lot of compatibility issues, like incorrect texture, color and drawing, also sometimes will get java.lang.UnsupportedOperationException then

[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

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

2008-03-27 Thread kaiping
(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 named transaction_edit.xml. On Mar 26, 3:54 am, Dan U. [EMAIL PROTECTED] wrote: Well, he needs to have the filename

[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't you need

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

2008-03-25 Thread kaiping
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 of my application. I have posted the code below. If anybody has any ideas that would be great thanks, Josh package