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. self steering car using Camera.

Any interest in building a self-steering car using Android camera?
See block diagram here.
Sorry, slightly off topic...

2. Triggering dynamically a NUMERIC keyboard with no use of TextView component.


Currently, im porting a J2ME app to the Android platform. Ive already
done this process, though some bugs need to be fixed. Lately, Ive been
struggling to solve an issue related with the Android's virtual

My app launches a screen, together with a virtual QUERTY keyboard,
requesting the user to insert a numeric string in a text field. It is
preferable however enabling a NUMERIC keyboard instead of a QUERTY
one. Thus, I would like to know if there's any way to programmatically
provide a NUMERIC keyboard to the user, disregarding at the same time
any existent EditText components.

Note that i want to avoid the use of expressions related to EditText

The goal here is reaching the same result as for
editTextBox.setInputType(TYPE_CLASS_NUMBER), avoiding the use of
TextBox components.

Ive tried using with no success:

- Configuration class with the KEYBOARD_12KEY constant;
- The InputMethodManager class;
- The InputMethodService and EditorInfo class (EditorInfo.inputType)

Sorry for the size of this message.
Thanks in advance for all :-)

Ricardo Lobo

3. Problem with ListPreference in preference view

4. is there a way to know exclude the invisible face intersected with a pick ray?

5. Query ringtone???

6. Making Kernel Crash -Ramdump/Crash-Emulator on windows

7. Constructing shapes from other objects