But I can use libraries and I want to know how to define them
Where did you go
You cannot import libraries into IDE.
If you want to use functions from libraries you need to define them as a class within the code itself.
Try this one:
package io.makeroid.salem_m_s2030.salwem;
import com.google.appinventor.components.annotations.DesignerComponent;
import com.google.appinventor.components.annotations.DesignerProperty;
import com.google.appinventor.components.annotations.PropertyCategory;
import com.google.appinventor.components.annotations.SimpleEvent;
import com.google.appinventor.components.annotations.SimpleFunction;
import com.google.appinventor.components.annotations.SimpleObject;
import com.google.appinventor.components.annotations.SimpleProperty;
import com.google.appinventor.components.annotations.UsesPermissions;
import com.google.appinventor.components.common.ComponentCategory;
import com.google.appinventor.components.common.PropertyTypeConstants;
import com.google.appinventor.components.runtime.AndroidNonvisibleComponent;
import com.google.appinventor.components.runtime.ComponentContainer;
import com.google.appinventor.components.runtime.EventDispatcher;
@DesignerComponent(version=1, description=“Extension made with Kodular IDE”, category = ComponentCategory.EXTENSION,
nonVisible = true,
iconName = “https://yt3.ggpht.com/-ovVu14FBTcI/AAAAAAAAAAI/AAAAAAAAAAA/UeaqjAjhwBI/s48-c-k-no-mo-rj-c0xffffff/photo.jpg”)
@SimpleObject(external=true)
public final class NewExtension extends AndroidNonvisibleComponent {
private int num1,num2;
public NewExtension(ComponentContainer container) {
super(container.$form());
}
@SimpleFunction(description = “”)
public void Getvalue(int number1,int number2){
num1=number1;
num2=number2;
int res = num1+num2;
Gitvalue(res);
}
@SimpleEvent(description = “”)
public void Gitvalue(int result){
EventDispatcher.dispatchEvent(this,“Gitvalue”,result);
}
}
Bro I am. Not able to get album art of mp3 song. Can you make an extension for that function i will pay for You.