How can I start a chronometer in a service?
I ask this because you can’t associate an XML file to a service
Chronometer mChronometer = (Chronometer) findViewById(R.id.chronometer);
My goal is to vibrate phone after the prox sensor has been keep covered for at least 5 seconds.
Chronometeris a widget. It is part of the user interface. Services do not have a user interface. Services do not use widgets. Services do not useChronometer.Use
TimerandTimerTaskto get control after five seconds within a service.