Puppet Man
Lurker
Hello all!
I've been developing Android apps for about 4 months now, so I'm still pretty new. There are two apps I am currently working on, and I'm stuck at a similar point in both of them - connecting and sending data to another device wirelessly. In one, I would like to transfer strings (specifically strings of data I've collected from the accelerometer) from the device to a computer via wifi. In the other app, I would like to connect two devices and send the GPS data to each other, so each knows where the other is.
I've done a lot of research, but I'm still unclear what the best way to go about this is. I've seen people suggesting the use of servers for others who were trying to do something similar, but I have no idea how to even start setting that up. From what I've seen, the Socket Android class appears to be what I should use, but I really don't understand how it works. It looks like I connect to a device by providing the IP address, but I don't understand how the other device will receive the data....or really how it works at all lol. Am I on the right track? If someone could give me some explanations/suggestions/guidance I would be very appreciative. Thanks!
I've been developing Android apps for about 4 months now, so I'm still pretty new. There are two apps I am currently working on, and I'm stuck at a similar point in both of them - connecting and sending data to another device wirelessly. In one, I would like to transfer strings (specifically strings of data I've collected from the accelerometer) from the device to a computer via wifi. In the other app, I would like to connect two devices and send the GPS data to each other, so each knows where the other is.
I've done a lot of research, but I'm still unclear what the best way to go about this is. I've seen people suggesting the use of servers for others who were trying to do something similar, but I have no idea how to even start setting that up. From what I've seen, the Socket Android class appears to be what I should use, but I really don't understand how it works. It looks like I connect to a device by providing the IP address, but I don't understand how the other device will receive the data....or really how it works at all lol. Am I on the right track? If someone could give me some explanations/suggestions/guidance I would be very appreciative. Thanks!
) 