Some of my other questions seemed to be a bit too specific, so maybe this could be easier to deal with.
What I'm looking for is a way for me to click on a point (x,y) in a java app on my pc, and have a circle drawn at that point (x,y) on my phone. I know how to do all the drawing and registering the mouse clicks but I'm not so sure how to send the data from my pc to the phone.
Perhaps someone with some experience in networking/data transfer could lend me some direction or point to some example code?
Looking to read (just read not send back and forth) a signal that will be coming in via the usb connection on my galaxy SIII, found this -
http://developer.android.com/guide/topics/connectivity/usb/host.html - on the android developer website that should contain everything I need, but I'm having some trouble determining how to get anything from java format to processing. Also curious if I need to change the manifest or if one of the android->sketch permission check boxes might do this for me.
I think I am supposed to use the UsbAccessory class and then the UsbRequest classes. If anyone has had any experience with these, any guidance would be much appreciated.
Trying to use createWriter to make a text document on my phone's sd card that I can open and view on my pc. I tried using the examples processing gave (SaveFile1 and 2) as well as the simplified example I made below. Unfortunately when I then run a search on my phone I can't find the file "helloworld.txt", nor can I find the files made by SaveFile1 and 2.
Had a look in some other threads and tried changing line 4 to
output = createWriter("//sdcard//helloworld.txt"); but that didnt help either. Worth noting that I've also enabled the "WRITE_EXTERNAL_STORAGE" permission. Anyone know what I'm doing wrong?
PrintWriter output;
void setup()
{
output = createWriter("helloworld.txt"); // Create the file
output.println("Hello World!"); // Write to the file