I am struggling to successfully network my android devise with a server I have on the same Wifi network.
Any guidance would be much appreciated.
I want to view some sensor values on my android devise.
I have a server writing a message on a given IP and Port. (This happens to be a arduino wifi project, simply I am broadcasting two sensor values)
I want to view these sensor values on my android devise. (I can do this using my pc/java processing, telnet, etc, but not with android processing)
I am aware of oscP5 libraries and such but, for my simple little set up all I require to do is to display the message I am broadcasting on my android devise as it sits as a client. Just seeing the message on the screen would be great! For example I have used ConnectBot and I can see them this way. I'd rather make my own program so I can develop it further.
Please suggest any areas I should research! (Networking with Java... I gathered:) )
Many thanks guys.
EDIT: Yes i am a newbie, but i can make android applications minus networking stuff.
I am trying to read data from a particular port and IP with android processing.
Does anyone know how I would do this?
This is the same as using telnet on PC to look at a particular message and port.
Thanks.
[Old]
I have a server sending a constant stream of stuff onto a wifi network. (This happens to be a arduino wifi/project, the constant stream is just temporary until I get my head round this).
The message is constructed:
R, Value0, Value1, R, Value0, Value1, R....etc
I want to use this message on my android devise to do stuff, such as present some sensor information to the user.
The simple question is - How do I read this stream from my server in android processing with the OscP5 library?
My code(that is probably completely in the wrong direction):
import oscP5.*;
import netP5.*;
OscP5 oscP5tcpServer;
OscP5 oscP5tcpClient;
NetAddress myServerAddress;
void setup() {
oscP5tcpClient = new OscP5(this, "192.168.0.20", 12000);}
void draw() {
background(0);
println(String,theMsg); // < - This part
}
In summary: i could do with some guidance into using oscP5 to read a message on the wifi/tcp.
Thanks for reading this post, it is people like you that make this community so brilliant to learn from.
I have a load of .jpg files I want to play back (in sequence at a certain fps) on a android devise.
What is the best way to animate these? (there are approx 200 files/frames that are on my PC)
Is the best way to produce a .gif? (If so, how is this done? searching this matter brings up a lot of rubbish, i was wondering what the best method is?)
I'm aware I can code these all in individually but I don't fancy that kerfuffle :)
I have a Java based program that runs on my normal processing Java state.
I wish to put this on a android devise. I have all the installed stuff required. (I can run example processing programs without a problem, that is on the devise)
When i try to run my program onto android i get:
No library found for processing.net
Android SDK Tools Revision 20.0.3
Installed at C:\Program Files\Android\android-sdk
Project Type: Application
Project Target: Android 2.3.3
API level: 10
Library dependencies:
No Libraries
------------------
API<=15: Adding annotations.jar to the classpath.
Merging AndroidManifest files into one.
Manifest merger disabled. Using project manifest only.
No AIDL files to compile.
No RenderScript files to compile.
Generating resource IDs...
Generating BuildConfig class.
BUILD FAILED
C:\Program Files\Android\android-sdk\tools\ant\build.xml:679: The following error occurred while executing this line:
C:\Program Files\Android\android-sdk\tools\ant\build.xml:692: Compile failed; see the compiler error output for details.
Total time: 2 seconds
Does anyone know what I should do? To get my program on my android devise.
I can print these values in the processing monitor, but i cannot seem to use the values to determine a shape characteristic. Processing receives the values I am interested in, please see the println in my code.
I have had the shapes working before i implemented a GET command.
import processing.net.*; Client myClient; String inString; int dataIn; int serverreq = 1; int speed = 500; int channel_1 = 0; int channel_2 = 0;
void setup() {
size(500, 500); myClient = new Client(this, "192.168.0.6", 80);