android - How to call a method with View param -


i have source code of app android location network or gps. there next code:

// callback method "both providers" button. public void usecoarsefineproviders(view v) {     musefine = false;     museboth = true;     setup(); } 

there button, , on onclick event call "usecoarsefineproviders", question want delete button , call method oncreate method, don't know how this.

i need learn things. help.

your code isn't doing anything, or using view parameter passed in. if want move oncreate, it- take body of function, paste bottom of oncreate, delete function , code (probably in xml) telling call function in onclick.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -