How to create an Extension

I think we can better understand by video not by just text

wonderful tutorial great

1 Like

I Am Just Trying To Create Simple Listview But I Am Not Success Please Help Me

My Java Code
    package com.srrazmi.List;

     import android.content.Context;
import com.google.appinventor.components.common.ComponentCategory;
 import com.google.appinventor.components.annotations.*;
import com.google.appinventor.components.runtime.*;
import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import com.google.appinventor.components.common.YaVersion;
import com.google.appinventor.components.runtime.util.ElementsUtil;
import com.google.appinventor.components.runtime.util.YailList;


    @DesignerComponent(version = 1,  description = "Simple Extension For List",
            category = ComponentCategory.EXTENSION,
            nonVisible = true,   iconName = "http://appyBuilder.com/extensions/icons/extension.png")
    @SimpleObject(external = true)
    public class List extends AndroidNonvisibleComponent {
        private ComponentContainer container;
        private Context context; //Added
        private Activity activity; //Added
        /**
         * @param container container, component will be placed in
         */
        public List(ComponentContainer container) {
            super(container.$form());
            this.container = container;
            context = (Context) container.$context(); //Added
           
        }
      

    @SimpleFunction(description = "Simple ListView For Learning ")
      public void MakeList(YailList list , AndroidViewComponent arragment) {
           View view = arragment.getView();
        adapter = new ArrayAdapter<Spannable>(container.$context(), android.R.layout.simple_list_item_1,
            list);
        view.setAdapter(adapter);

       
      }

    }

Don’t Suggest Me That List view Is Already Available , Because I Am Just Trying To Learn

I Got the success message. Now how to start building the extensions? help pls