I am trying to build an android application.
The application requires android 2.2 and Google Apis (for Google Maps).
- When I launch the application on a 2.2 Android emulator, it works.
- When I launch the application on a Galaxy S II with Android 2.3.7
(Cyanogen mod) it works. - But when I launch the application on a HP
Touchpad with the same version of the Cyanogen mod it fails at the
beginning after a findViewById returned null!
I have rebuilt the project, cleaned it etc… and it didn’t change any thing.
Any idea of what could cause this kind of behavior?
Are you using alternative layouts? i.e. ‘res/layout-large’, ‘res/layout-small’, etc.
If so, make sure the view you are trying to find appears in all of the different layouts.