mono - MonoDroid - How to use DialogPreference? -


i trying implement dialogpreference subclassing dialogpreference class , declaring in preferences xml file.

when call addpreferencesfromresource in preferenceactivity system.notsupportedexception. cannot catch exception copy have couple of screen shots below of looks when exception thrown.

i have copied , coverted code dialogpreference here.

how can implemented in mono android?

this xml dialogpreference:

<preferencescreen xmlns:android="http://schemas.android.com/apk/res/android"> <preferencecategory android:title="opening odds">     <app.monodroid.timepickerpreference      android:key="openoddstime"      android:title="opening odds time"      android:dialogmessage="time of day opening odds."      android:defaultvalue="">     </app.monodroid.timepickerpreference> </preferencecategory> 

screenshots: enter image description here

enter image description here

t may wrong, i'm pretty sure ate missing constructor takes 2 arguments, intptr , android.runtime.jnihandleownership. think have override base constructor of wrappers.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -