timepicker - Get time using time picker android -


how can time, set user on time picker widget in android ?

like this.

timepicker.gettime(); 

try below.

for picking hour can use

timepicker.getcurrenthour(); 

and picking minutes can use

timepicker.getcurrentminute(); 

and can set hour , minute integer variable. like

int hour = timepicker.getcurrenthour(); int minute = timepicker.getcurrentminute(); 

for more information can refer link

http://www.mkyong.com/android/android-time-picker-example/


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -