java - What version of Android should I compile for to avoid inner class warning -



java - What version of Android should I compile for to avoid inner class warning -

i'm working android 2.1 (update1) , intellij project settings project show:

jdk 1.6 , project language level set 6.0 (@override in interfaces)

yet when build within ide or outside maven following

warning: ignoring innerclasses attribute anonymous inner class

this line of code (might) issue if how "should" in 1.6 friendly build of android?

public class helloandroidactivity extends activity { @override public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.main); final button viewbutton = (button) findviewbyid(r.id.loadviewbtn); viewbutton.setonclicklistener(new view.onclicklistener() { @override //this says override not allowed when impl interface method?? public void onclick(view view) { intent viewactivity = new intent(helloandroidactivity.this, viewphotosactivity.class); startactivity(viewactivity); } });

just delete text @override

java android compiler-warnings

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -