java - how to pass data from not-main activity to thread -


i created object bluetooth-service, thread created, monitors data in queue. main-activity 1 activity created, can set data. how can pass data activity thread sending messages, withount passing object bluetooth-service?

did think using static class save message need send, maybe use observer pattern (if needed) notifying thread has new message send


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -