Hi
I am testing my application with new SDK 1.6 and encountered a
problem
running it with the new emulator. The problem occurred when inflating
the
resources used by my Settings screen which uses a <DialogPreference />
for an About dialog:
...
...
at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 898): at java.lang.reflect.Method.invoke
(Method.java:521)
E/AndroidRuntime( 898): at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime( 898): at com.android.internal.os.ZygoteInit.main
(ZygoteInit.java:549)
E/AndroidRuntime( 898): at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime( 898): Caused by: android.view.InflateException:
Binary XML file line #30: Error inflating class
java.lang.reflect.Constructor
E/AndroidRuntime( 898): at
android.preference.GenericInflater.createItem(GenericInflater.java:
397)
E/AndroidRuntime( 898): at
android.preference.GenericInflater.onCreateItem(GenericInflater.java:
417)
E/AndroidRuntime( 898): at
android.preference.GenericInflater.createItemFromTag
(GenericInflater.java:428)
E/AndroidRuntime( 898): at
android.preference.GenericInflater.rInflate(GenericInflater.java:481)
E/AndroidRuntime( 898): at
android.preference.GenericInflater.rInflate(GenericInflater.java:493)
...
...
line #30 corresponds to the following in my
"res/xml/preferences.xml" file:
-----------------------------------------------------------------------------------------------
...
...
<PreferenceCategory
android:title="@string/pref_info">
30- -> <DialogPreference
android:key="info_about"
android:title="@string/pref_info_about"
android:summary="@string/pref_info_about_summary"
android:dialogTitle="@string/pref_info_about"
android:dialogMessage="@string/pref_info_about_msg"
android:negativeButtonText="@null"
/>
...
...
-----------------------------------------------------------------------------------------------
I tried eliminating the attributes to see which one was causing the
problem
but I couldn't eliminate the problem until I removed the complete
<DialogPreference ... /> tag.
Any suggestions ?
Regards.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---