Network Communication with Mega R3

Hey there,

I need help by my current project: An HomeControl over the Network.

I’ve searched a lot on the internet but i found only a guy in germany who could give me the code he’s running on the arduino but not the sourcecode of the android app.(cause he had someone who has written the code but he doesn’t answer since 3 months. Now to the actually prob: i dont know how to communicate between the arduino and any device.(android is the important one, the others are: windows, ios, browser. now the simplest Method would be crating an html with all parameters. but i want a really APP for ist. I want to have it as a widget on my phone!
please help me how to do it.

i think he writes methods for receiving a letter wich effects something. this part is here:

if((input == ';')||(input == '\n'))
 {
 switch(actCommand[0])
 {
 case 's':
 Cinema->stop();
 break;
 case 'a':
 switch(actCommand[1])
 {
 case('n'): //on
 Lights->setProfile(3);
 break;
 case('f'): //off
 Lights->setProfile(1);
 break;
 case 'i': //print information
 pDS("ARDUINO HOME INFORMATION");
 pDln();
 pDS("VERSION: ");
 pDS(ARDUINO_HOME_VERSION);
 pDln();
 ip = Ethernet.localIP();
 pDS("IP: ");
 for (byte thisByte = 0; thisByte < 4; thisByte++)
  {
 pD(ip[thisByte]);
 pDS(".");
  }  
 break;
 case 'x': //STOP CINEMA ACTIONS
 Cinema->stop();
 break;
 }
 break;
 case 'c':
 switch(actCommand[1])
 {
 case('b'): //button
 pDS("BUTTON ");
 pD(decodeNumber(actCommand.substring(2)));
 pDS(" PRESSED");
 pDln();
 Cinema->pressButton(decodeNumber(actCommand.substring(2)));
 break;
 case('u'): //window up
 pDS("WINDOW UP");
 pD(decodeNumber(actCommand.substring(2)));
 pDln();
 Cinema->windowUp(decodeNumber(actCommand.substring(2)));
 break;
 case('d'): //window down
 pDS("WINDOW DOWN");
 pD(decodeNumber(actCommand.substring(2)));
 pDln();
 Cinema->windowDw(decodeNumber(actCommand.substring(2)));
 break;
 case('r'): //canvas up
 pDS("CANVAS UP");
 pDln();
 Cinema->canvasUp();
 break;
 case('f'): //canvas down
 pDS("CANVAS DOWN");
 pDln();
 Cinema->canvasDw();
 break;
 }
 break;