Hi, I am binding filechooser library project to xamarin android .
1) filechooser.jar from eclipse build 2) Created a new Java Bindings Library project 3) Copied the generated filechooser.jar into the Jar directory and set the Build Action to "EmbeddedJar" 4) Copied the referenced android-support-v4.jar file from the android-sdk\extras folder to the Jar directory and set the Build Action to "EmbeddedReferenceJar" 5)Add the reference Mono.Android.Support.V4 to the binding project 6) Attempted to build the project and got the errors . *Error 1 :* 'Com.Ipaulpro.Afilechooser.FileListFragment' does not implement interface member 'Android.Support.V4.App.LoaderManager.ILoaderCallbacks.OnLoadFinished(Android.Support.V4.Content.Loader, Java.Lang.Object)' Java Code =========== public class FileListFragment extends ListFragment implements LoaderManager.LoaderCallbacks<List<File>> { @Override public void *onLoadFinished*(Loader<List<File>> loader, List<File> data) { mAdapter.setListItems(data); if (isResumed()) setListShown(true); else setListShownNoAnimation(true); } } generated C# Code ============== namespace Com.Ipaulpro.Afilechooser { // Metadata.xml XPath class reference: path="/api/package[@name='com.ipaulpro.afilechooser']/class[@name='FileListFragment']" [global::Android.Runtime.Register ("com/ipaulpro/afilechooser/FileListFragment", DoNotGenerateAcw=true)] public partial class *FileListFragment *: global::Android.Support.V4.App.ListFragment, global::Android.Support.V4.App.LoaderManager.ILoaderCallbacks { internal static IntPtr java_class_handle; internal static IntPtr class_ref { get { return JNIEnv.FindClass ("com/ipaulpro/afilechooser/FileListFragment", ref java_class_handle); } } *Error 2 :* 'Com.Ipaulpro.Afilechooser.FileLoader.LoadInBackground()': return type must be 'Java.Lang.Object' to match overridden member 'Android.Support.V4.Content.AsyncTaskLoader.LoadInBackground()' Java Code : ======== public class FileLoader extends AsyncTaskLoader<List<File>> { @Override public List<File> *loadInBackground*() { return FileUtils.getFileList(mPath); } } Generated C# Code : ================= static IntPtr id_loadInBackground; // Metadata.xml XPath method reference: path="/api/package[@name='com.ipaulpro.afilechooser']/class[@name='FileLoader']/method[@name='loadInBackground' and count(parameter)=0]" [Register ("loadInBackground", "()Ljava/util/List;", "GetLoadInBackgroundHandler")] public override global::System.Collections.Generic.IList<global::Java.IO.File> LoadInBackground () { if (id_loadInBackground == IntPtr.Zero) id_loadInBackground = JNIEnv.GetMethodID (class_ref, "loadInBackground", "()Ljava/util/List;"); if (GetType () == ThresholdType) return global::Android.Runtime.JavaList<global::Java.IO.File>.FromJniHandle (JNIEnv.CallObjectMethod (Handle, id_loadInBackground), JniHandleOwnership.TransferLocalRef); else return global::Android.Runtime.JavaList<global::Java.IO.File>.FromJniHandle (JNIEnv.CallNonvirtualObjectMethod (Handle, ThresholdClass, id_loadInBackground), JniHandleOwnership.TransferLocalRef); } i have embeded the api.xml for reference. api.xml <http://mono-for-android.1047100.n5.nabble.com/file/n5713532/api.xml> api.xml <http://mono-for-android.1047100.n5.nabble.com/file/n5713532/api.xml> Kindly suggest me how to solve the above issues as i am struggling the past two days . Thanks -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Binding-FileChooser-java-Library-project-to-xamarin-android-tp5713532.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid