android finish() vs activity.finish() -


i working on legacy code android app, , in activities when want finish activity write

finish() 

and in other places write

activity.this.finish() 

what difference?

actvity.this transparent in activity class, because references itself, can call class method both using , not using in java


Comments

Popular posts from this blog

ios - Is 'init' forbidden as *part* of a variable name? -

javascript - Why Selenium can't find an element that is graphically visible -

angular - Angular2 Router: Cannot find primary outlet to load 'HomeComponent' -