java - AndroidLauncher libgdx Application errors? -
i used able run in android no problem, default launcher application has errors (bundle
, super.oncreate
).
also, says class needs abstract or implement methods, used able run in android without opening file.
need able run in android now, suggestions?
public class androidlauncher extends androidapplication {//error on line, wants abstract protected void oncreate (bundle savedinstancestate) {//error here on bundle super.oncreate(savedinstancestate);//error here on oncreate androidapplicationconfiguration config = new androidapplicationconfiguration(); initialize(new movement(), config); } }
you getting these error because have not declared oncreate method override annotation. not own method. code should
public class androidlauncher extends androidapplication { @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); androidapplicationconfiguration config = new androidapplicationconfiguration(); initialize(new movement(), config); } }
i hope work.
Comments
Post a Comment