Hi,
I have this scenario and would like to understand what is the best development methodology to implement it
In the activity Main i've a central button that after click it starts a foreground service that run the speechrecognizer to permit the simulated continuos voice recognition
When service starts, the button and other views in the activity Main changed the layout (visible = false, image view button, position ecc.. )
I also implemented a method that after click on the notification, starts the app and run the voice recognition standard
My problem is that if the screen is off or the activity is in paused, when i click on notification and starts the app, sometimes i get an error in some views randomly (label not initialized ecc...) depends if the activity has been completly initialized or no
Exist better methods that allow the wait complete of view's initializing when activity resume?
I try to use the Thread library i don't know if is a correct way to do that
I have this scenario and would like to understand what is the best development methodology to implement it
In the activity Main i've a central button that after click it starts a foreground service that run the speechrecognizer to permit the simulated continuos voice recognition
When service starts, the button and other views in the activity Main changed the layout (visible = false, image view button, position ecc.. )
I also implemented a method that after click on the notification, starts the app and run the voice recognition standard
My problem is that if the screen is off or the activity is in paused, when i click on notification and starts the app, sometimes i get an error in some views randomly (label not initialized ecc...) depends if the activity has been completly initialized or no
Exist better methods that allow the wait complete of view's initializing when activity resume?
I try to use the Thread library i don't know if is a correct way to do that