Hi,
I am evaluating Xamarin and RemObject C# (Hydrogen). One difficulty for me with the Remobject is, there is no documentation other than a video for Android devlopment in C#.
I am using VS 2013 IDE provided with RemObject C#
For e.g. I wanted to know how to extend BaseExpandableListAdapter. I created a new class inherited from BaseExpandableListAdapter.
When I try to override the method getChildView(…) I am not getting any method like that. This function is an abstract member of ExpandableListAdapter and implemented it in BaseExpandableListAdapter.
Can some one please help me to get some answer. I really liked Remobject C# compared to Xamarin.
The thing about RemObjects C# is that all the APIs you work with are the exact platform APIs provided by the platform vendor (ie Oracle and Google in the case for Java/Android). So we don’t document APIs such as BaseExpandableListAdapter, but they will work just as described in the Java/Andrlid docs (in this case here).
I’m not familiar with this class myself (i’m not an Android developer), but in this case it seems the docs are confusing: the class does not actually implement getChildView(), so you cannot override the method. The class merely descends from an interface that wants this method implemented, ut since the class is abstract, it doesn’t provide it.
You can/must simply implement the method, without “override” keyword:
public View getChildView(int groupPosition, int childPosition, Boolean isLastChild, View convertView, ViewGroup parent)
{
}
i’ll log a research issue to see if we can improve what the compiler reports for cases such as this (or maybe even allow the “override” keyword, in such a scenario.
I have one question. Does the above means, I am using VS IDE as just an IDE and none of the .NET related assemblies are not available when I target for Android. That means I cant use System.Collections.Generics.IList or anything that .NET provides for me.
You can use classes in the Sugar project but you can easily create your own classes using mapping. I attached System.Collections.Generic.pas code file for Android that I use in my projects, because I don’t need all the functionality provided by classes in the Sugar project. It is written in Oxygene but it can easily be converted to RemObjects C#.