• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps add custom params for touchDown() function

androgaga

Newbie
Hi guys,

I need to launch an sql query when a button is pressed :

Code:
public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
            	
       		db = new Database();
           	scores = db.UpdateScore(entryId, types[type]);<=== ERROR HERE ("entryId" and "type" not defined)
                return true;
                
            }
I need to pass these 2 parameters "int entryId" and "int type" inside the listener.

I tryied this :
Code:
public boolean touchDown (InputEvent event, float x, float y, int pointer, int button, int entryId, int type)

but the probl
 
Hi StackReject, and thanks for the help :)

Interesting link, however I'm working with libgdx and this example is intended for "pure android" development.
 
Back
Top Bottom