This post was flagged by the community and is temporarily hidden.
Is it a question? Is it a example code? Is this giving a error when compiling? What is that?
What you want ?
Any way the code looks same as my tutorial. Did you got this code fro “The Developer 2.0” channel ?
This does not work. Please help me
Yeah
Did not give .Java
import com.google.appinventor.components.runtime.EventDispatcher;
donot work
i am work with ide kodular
can you paste your code again ? that I can see.
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 {
/**
* Creates a new component
*/
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);
}
what is this ???
I said EventDispatcher;
Its a semicolon
I will see
put a }
at the end of the code.
The same problem
I want to make any add on Event
And Function
what does it mean ??
I want to start learning how to make additions
You know java ?
A little bit