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

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

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

android - Pass an Serializable object in AIDL -