Latest Android Aptitude Question SOLUTION: Updating UI from service: How to access progress bar from a service?
Options
1) Send progressbar id through intent extras & access it in service
2) Make progress bar as static var
Updating UI from service: How to access progress bar from a service?
Options
1) Send progressbar id through intent extras & access it in service
2) Make progress bar as static variable, and access that variable from service.
3) If you want to touch UI from service, trigger a dynamically registered receiver in activity from service, And update UI from that dynamic receiver with in that activity
4) put all UI controls in a common class and access it from all components.
Don't learn Mathematics just to prove that you are not a mentaly simple person but learn it to prove that you are enough intelligent
LA
A MAN IS LIKE A FRACTION WHOSE NUMERATOR IS WHAT HE IS AND WHOSE DENOMINATOR IS WHAT HE THINK ABOUT HIMSELF LARGER THE DENOMINATOR SMALLER THE FRACTION