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
Post a Comment