My program if fine in emulator but not on device, Inflate Exception

by sunrises » Mon, 23 Nov 2009 14:40:57 GMT

Sponsored Links
I write a Gallery program to display photos from sdcard, it shows the
photos fine but when user clicks on photo, it needs to display a
dialogue box or toast, it also works in emulator but not in G1 device
it shows errors like
android.view.InflateException: Binary XML file line #46: Error
inflating class java.lang.reflect.Constructor
I could not find the right solution
Thank you


Other Threads

1. Anyone get Camera#takePicture() to work on DROID?

No, because I wasn't sure how I'd tell Camera#takePicture() from
launching the camera Intent.

Well, taking a picture didn't blow up. It must be there's some parameter
I need to set for the DROID that causes the SIGSEGV if I don't set it.
I'll have to poke around.


Mark Murphy (a Commons Guy) |

_Android Programming Tutorials_ Version 1.0 Available!


2. Review android

Mnta review android donk ,
Klebihan dan kekurangan serta android type ap yh yg oke buat perempuan aka cewe 

Boldmy lackBerry
japri :
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to

To request to subscribe to this group:


3. How to set location of buttons programmatically

4. Cant react to home button...

5. Optus deliberately blocking Android paid apps

6. My Paid App Now Showing on the HTC Eris

7. nine patch