Hello Community!
I am creating my first extension using appypie editor. It is a extension to extract thumbnails from YouTube video. But I am unable to build it. Please Help me!
Thanks
GT GAME AND TECH
Hello Community!
I am creating my first extension using appypie editor. It is a extension to extract thumbnails from YouTube video. But I am unable to build it. Please Help me!
Thanks
GT GAME AND TECH
P.S I am building it but it is failing everytime
I don't have any experience of building extensions but I have visited the appy builder editor once.
When you create a new project, it asks for project type - Java, AIX, HTML and formats like that if I am right.
Looking at your extension (.java), I guess you are building it as a java project rather than an aix. Try creating a new project or changing the extension of the file to .aix.
No @Alaqmar_Bohori I have build it as an .aix file only.
It say's that it will take 5 minutes to build but after that the build automatically stops without any warning or something like that
Lets wait for an expert
Replace
public string GetThumbnail(videoid)
With
public String GetThumbnail(String videoId)
Also enter maxresdefault.jpg in quotes " "
@Techno_Vedang It is still not building and is saying
" Your Last Build Request: 5 minutes ago" and their is one more option of showing build log
show the build log
also show your code with changes suggested by me.
It's just a seconds look. Here is the problem:
And, what is "maxresdeault.jpg"? Is it a variable or string? It's just not a statement. You really need to learn the basics of Java.
If you create a project with appybuilder selecting the java project category then there will no build button will show
I fixed it for one of my friend. Now it will help u too
import android.content.Context;
import android.util.Log;
import com.google.appinventor.components.annotations.*;
import com.google.appinventor.components.runtime.*;
import com.google.appinventor.components.common.ComponentCategory;
@DesignerComponent(version = 1, description = "Extension to obtain Youtube Video thumbnails",
category = ComponentCategory.EXTENSION,
nonVisible = true, iconName = "http://appybuilder.com/extensions/icons/extension.png")
@SimpleObject(external = true)
public class Youtubethumb extends AndroidNonvisibleComponent {
private ComponentContainer container;
/**
* @param container container, component will be placed in
*/
public Youtubethumb(ComponentContainer container) {
super(container.$form());
this.container = container;
}
@SimpleFunction
public String GetThumbnail(String Videoid) {
String make = "https://img.youtube.com/vi/" + Videoid + "/mqdefault.jpg";
return make;
}
}
Make sure to put ur project name as Youtubethumb or if u change, then change the name in Public class and component container.
Sample aix of the code
com.appybuilder.anshmishra2166.Youtubethumb (1).aix (5.3 KB)
Regards
But it is not showing me any error