<DialogPreference /> not working in 1.6 ?

by elpix1 » Fri, 18 Sep 2009 22:15:11 GMT


Sponsored Links
 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.



--~--~---------~--~----~------------~-------~--~----~



<DialogPreference /> not working in 1.6 ?

by elpix1 » Fri, 18 Sep 2009 23:42:23 GMT


 Hi,

I noticed also that in the 1.6. emulator if I try to execute (tested
in Linux and Windows):

   Settings --> Wireless controls --> Bluetooth Settings

A similar error occurs:

--------------------------------------------
Caused by: android.view.InflateException: Binary XML file line #26:
Error inflating class java.lang.reflect.Constructor
E/AndroidRuntime(  894):        at
android.preference.GenericInflater.createItem(GenericInflater.java:
397)
E/AndroidRuntime(  894):        at
android.preference.GenericInflater.createItemFromTag
(GenericInflater.java:430)
E/AndroidRuntime(  894):        at
android.preference.GenericInflater.rInflate(GenericInflater.java:481)
E/AndroidRuntime(  894):        at android.preference.GenericInflater.inflate
(GenericInflater.java:326)
E/AndroidRuntime(  894):        at android.preference.GenericInflater.inflate
(GenericInflater.java:263)
E/AndroidRuntime(  894):        at
android.preference.PreferenceManager.inflateFromResource
(PreferenceManager.java:250)
E/AndroidRuntime(  894):        at
android.preference.PreferenceActivity.addPreferencesFromResource
(PreferenceActivity.java:253)
E/AndroidRuntime(  894):        at
com.android.settings.bluetooth.BluetoothSettings.onCreate
(BluetoothSettings.java:87)
--------------------------------------------

Have anyone noticed this ?



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


<DialogPreference /> not working in 1.6 ?

by Max_well » Tue, 22 Sep 2009 03:57:39 GMT


 Same things here.

A bug have been open :  http://code.google.com/p/android/issues/detail?id=3972 


--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Problem with ADT plugin in Eclipse Galileo

Hello all,

I installed the ADT plugin successfully and actually worked on
tutorials. But, after having installed Google Web Tool Kit and App
Engine plugins, All related Android menus and options are gone. So, I
can no longer create any Android project and any web tool kit project
in fact. It is as if those plugins were not installed.

I checked the install software menu, and when I select the
repositories for the Google and Android plugins, it says they are
already installed. I just noticed that Eclipse no longer loads the ADT
plugin when starting, and I can't find how to have them started.

I wonder if eclipse starts any plugin at all, except the core eclipse
and java needed. What's weird is that I can't seem to find any
corresponding entries for those plugins in the plugin folder of my
eclipse galileo distribution.

Please help, as I am blocked from working on any Android or web tool
kit related project!!

Thanks,
Stphane

--~--~---------~--~----~------------~-------~--~----~

2. blackberry messenger

my son and wife both have blackberry tours. my son in studying in
england for a year. he and my wife are able to send blackberry
messages (bbms) back and forth for free. i have a samsung 740 and can
only send text messages to him via facebook for free, but the facebook
implementation on my phone is crippled. i looked at the new storm 2,
but i didn't like it, nor do i like the tour.

is there an app available for the new droid for verizon that will
allow instant messaging with blackberry messenger clients? if not,
what would i need to do to create such an app? i have a programming
background (from a previous life, i used visual basic) and i'd like to
explore the possibility of creating such an app.

also, if i did create a droid<->blackberry messenger app, how would i
go about marketing it?

thanks for your help.

david

-- 

3. gridview using array.xml

4. Accessing Market through ACTION_VIEW Intent

5. list of best Android Dev forums/discussions

6. How to download?

7. How to Replace of existing default Application by the Application created by me without user intervention