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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -