My original idea was that at the end of the speaking class set an interface to the speech class parameters, and then started listening MainActicity interface receive parameters, do not know to have a great god has a better solution
CodePudding user response:
You had thought of the two processes, why not consider two threads, consider locking, two actions cannot simultaneously and must process solution is lock, jam, or you use other ways, no traffic, program order operation, easily cleared, in the process, even if you use the lock, also may be the same thread to lock the two consecutive, but this is not something high concurrency because of you, basically there is no continuous rob the behavior of the lock, the hand of the comparative speed can't be in a recording after the opening inside the nextCodePudding user response:
Can be monitored phone micro state