communication

BluetoothChat like app not communicating

橙三吉。 提交于 2019-12-13 06:13:16
问题 Have a problem while developing an app based in the BluetoothChat example, but divided in 2 activities. The main with bluetooth actions ()BTActivity The chat (BTCommunication) I have the BluetoothChatService too divided in the following files, but they aren't activities: Transmission: All the Handler actions ConnectThread ConnectedThread AccpetThread The app finds de device, starts connecting it and then crashes. I'm trying to find out what i'm doing wrong comparing with the BluetoothChat App

Grails Mail Plugin doesnt install - try to fix in Config but still doesnt work

泪湿孤枕 提交于 2019-12-13 05:14:31
问题 I need to install the mail plugin for grails. The console shows the following error: Failed to install plugin [mail-1.0-SNAPSHOT]. Plugin has missing JAR dependencies. I tryed to fix some things in the buildconfig.groovy according to guides to this problem I googled, but it keeps showing this error message above. Things I inserted into the buildconfig.groovy dependencies { compile "javax.mail:mail:1.4.3" runtime "org.springframework:org.springframework.test:3.0.3.RELEASE" runtime( ':mail:1.0

For my task how should you communicate between iphone devices over the 3G network?

跟風遠走 提交于 2019-12-13 04:44:27
问题 I have a situation where I would like to communicate between 2-4 devices over the 3G network (it should also work over WLAN, but 3G solution is critical). Every device (except one) asks for a GPS-location every ~5 seconds, but when this process is cancelled by the user of that device, one device needs to be informed of this event. I was thinking that one device could act as a server, and the rest as clients that should connect to the server. Is this possible over the 3G network? I've also

GUI /application communication

天大地大妈咪最大 提交于 2019-12-13 03:46:44
问题 What is the best way to handle GUi/ internal application communication. I have many underlying threads processing data, and would like to post their output to the gui. Should I have some kind of handler object that is owned by all my runnables, and then have them post to it, so it can handle the output to the gui? 回答1: I usually use an observer pattern for that kind of communication. So basically your thread classes implement a common interface (addObserver()) making them observables and your

How can an instance communicate with its instantiator?

£可爱£侵袭症+ 提交于 2019-12-13 03:37:02
问题 Given a really oversimplified example: Class A { B b = new B(); } Class B { //unicorns and what-not //Something happens and I want to let A know //Yet I don't want to return and exit } Is there any way that B can communicate with A without Sockets? By communicate, I mean B sending values to A without A invoking a method on B. EDIT : Thank you for your responses. This following is my follow up question: If I had the following, and method signal() is called simultaneously by 2 instances of B,

Arduino ethernet communication

让人想犯罪 __ 提交于 2019-12-13 02:47:41
问题 Is it possible to get sensor output from Arduino via Ethernet connection and to send data to Arduino via Ethernet? So basically can "replace" serial port with Ethernet port? 回答1: The typical way to do this is with an Arduino Ethernet shield, a small hardware module that plugs into your Arduino board: http://arduino.cc/en/Main/ArduinoEthernetShield Updated: One very common approach for client to server communication would be to use HTTP over TCP/IP. See this example on the Ardunio site of a

Phonegap: Connect two devices on WiFi and get them to communicate with each other

可紊 提交于 2019-12-13 02:38:51
问题 I'm still a beginner. so i hope that you will not linch me for asking funny questions Maybe it is not really a phonegap question, but i think someone will know the answer for my question. I want to make an app that send data / content from phone (android or ios) to another phone or to pc over wifi (they are on the same network). For example: Customer is choosing / ordering items on a phone and when he is done with ordering he sends order to the other person on pc / phone so the other person

How to communicate a service with a running thread in Android

删除回忆录丶 提交于 2019-12-12 20:13:08
问题 my goal is to lunch a service that will take care for all of the application network needs. i thought maybe to open 2 sockets for data transfer. i want the data to be handled asynchronously, so i was thinking my be i should run them in two separated threads, each for every socket, and that way the data could be streamed in two different "links" async.. so, i would appreciate two things: a better overall design. maybe i completely got it all wrong.. can someone explain to me how can i

Synchronizing time between two PCs via TCP/IP, no server

你说的曾经没有我的故事 提交于 2019-12-12 17:19:58
问题 I've got two PCs connected by LAN. When the user alters the time (via my application) on one, I'd like the time on the second to be updated too (or the second machine could poll the first). There's no server, no internet. What's the best way to do this? OS: XP embedded. Framework: .Net 3.5 回答1: If you can't use NTP server you have to write it by yourself. The two application both implements a WCF service and are one client of the other; The application that have its local time modified

Simple Communication between 2 instances of application

牧云@^-^@ 提交于 2019-12-12 17:12:58
问题 I have a WPF application that can take a few optional command line arguments. This application is also a single instance application (using a mutex to close any instances if one is already open). What I want for it to do though, is if something tries to open the application with some cmd line args, that the application will do what it's suppose to do with those (in my application it opens different dialogs based on the cmd line). What is the easiest way to achieve this? In psedo code here is