I’m trying to create TimePicker dialog from a class that doesnt extends the Activity class. I need TimePicker in a class called EnterTime which has Context attribute containing Activity Context.
All examples of TimePicker on the WEB are basic ones written in Activity class and that’s why they confusing me.
I want time picker which works good on Android lower then 3.0. I don’t use XML layout.
So basically I need suggestion where to put onCreateDialog() , how to retrieve chosen time, etc.
I’ve EditText which have onClickListener() for calling a TimePicker.
may be this one help you
and call this