How do I create a custom adapter?

How to create custom adapter
What I try

    import android.os.Bundle;

@SimpleFunction(description = "Add image and name in grid view")

    public void Add(String image, String name){

        Object[] myList = {image, name};

        CustomAdapter customAdapter = new CustomAdapter(context, 17367043, myList);

        grid.setAdapter(customAdapter);

    }

16 posts were merged into an existing topic: Code do not work

OK ........... I see that agian