android - Capture SeekBar values -


in android application have textview , seekbar. both values used calculating result on button click.

the problem how capture seekbar value , convert string calculation.

the code below:

class clicker implements button.onclicklistener {     public void onclick(view v) {         string a,b;         integer vis;         = txtbox3.gettext().tostring();         b = slider1.getcontext().tostring();         vis = (integer.parseint(a)*integer.parseint(b))/100;         tv.settext(vis.tostring());     } } 

please help. in advance.

you looking method getprogress() of progressbar class seekbar subclass of progressbar.

so that.

int value = seekbar.getprogress(); 

also don't understand why want convert int string can convert string integer later. not make sense.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -