I am new to Android Development.
I purely like to work with JSON Objects and Arrays for my simple application considering the lightness of the JSON Carrier compared
You can pass null to super instead of creating a string array and implement getCount method:
public myAdaptor(Context context, int resource, JSONArray array)
{
super(context, resource, null);
// Store in the local varialbles to the adapter class.
this.context = context;
this.resource = resource;
this.profiles = array;
}
public int getCount(){
return profiles.length();
}