Android :: Connecting To Tcp Server From Client Running
Feb 24, 2010
I am trying to connect to a standalone desktop tcp server(java) from tcp client application in android device. But I am not able to connect to that.I tried to write a desktop tcp client and tried to connect to server(remote server). It is working fine.But When I am trying to connecting from android, I am getting a IOException while creating Socket instance.
View 6 Replies
Jul 15, 2010
I am writing an Android app that should exchange data to a server over Bluetooth, with the server side on a PC running Ubuntu, using the bluez library, in C (or C++).
My Android app fails (IOException) when I try to connect to my server socket on the PC.
Here is essentially what I in the java code (in Android, full eclipse project here: http://dl.dropbox.com/u/2968234/ThinBTClient.zip)
CODE:...........
This throws IOException after a timeout of 10seconds or so.
On the server side (in Ubuntu 8.10), I basically set up a Bluetooth server socket, along the lines described in the example bluez/sdp-register.c
Down below is my C++ program. To compile it do
g++ -I/usr/include/glib-2.0/ -I/usr/lib/glib-2.0/include -o bt_server bt_server.cpp -lbluetooth
I can do the reverse succesfully, i.e. create a server socket in Android and connect from Linux, however this is not what I want to do!
I think either the problem has to do with my config of Ubuntu.
CODE:................
View 1 Replies
View Related
Nov 10, 2010
I have been fed up of looking for a simple example of rest webservice connecting to Android Application. I know so many people have asked this question before, but there are so many different answers as a theory.
I know I must use restful web-service, rather than SOAP for mobile applications.
I need to create a webservice which is producing JSON, then in Android I can parse the JSON, but the problem is that as I am new to android I am looking for a simple example with both Server and client.
A server : JAVA with Database connection and Restful WebService that produce JSON
Android Client : which parse the JSON result from the webservice
View 1 Replies
View Related
May 23, 2010
I'm new to android application development.I want to transfer the data between the client and the server.. As of my knowledge for transferring the data from client to server we use HttpClient protocol.Is this protocol is same as REST web services?If i want to send the data in the form of JSON format,then what are the necessary steps that i need to follow?And on the server side what are the steps to receive and parse the data?
View 10 Replies
View Related
Jul 3, 2009
I want to send and receive information between Emulators in Android.i am using two systems and i have installed android in both the systems and i have to consider one emulator as server and another as client.Now i want to send data from one to another.Anyone knows regrading this please help me with some sample code.
View 2 Replies
View Related
Apr 7, 2009
I have an application client/server and I want to install this application in differente machines. The server is located in IP_SERVER, listening port 7000. I want to start a cliente in another machine with IP_Y and connect to the server on the different machine.
I've started the server and I've created the socket like this: ... new ServerSocket(7000);
I've started the client and I've created the socket like this: ...new Socket(SERVER_IP, 7000)
But the client did not connect to the server. I've already set the INTERNET_PERMISSION. Any suggestions how to do it? Anybody else have already done a client/server application that communicate between different machines?
View 12 Replies
View Related
Feb 13, 2010
I have a simple Java client application (Android app). I have to write a PHP server application which receives a request from the Java client application to write some data to a MySQL database or read some data from the MySQL database. It should respond with a status message (Write failed/success) or the data requested respectively. How would I get the Java client send a request and receive the reply from the PHP program and how would the PHP program receive the request and send the reply? I have googled about SOAP and REST architectures, but looking for a simple tutorial which will allow me to implement this simple program.
View 2 Replies
View Related
Apr 7, 2010
I wish to send a list containing objects from server to client and vice versa through httpurlconnection. Elaborating the same, the list contains a set of objects which is defined both in the server and the client. Its just that the server queries a database and sends the object to the client which collects the same and displays it to the user. Please let me know if thats possible and if it is, how would I be able to accomplish that.
View 9 Replies
View Related
Nov 6, 2009
I'm currently in the research phase of my dissertation project.My project is a ticket booking system for a mobile device and I have chosen to target Android.I anticipate the need for a client/server architecture with a central server, and so am currently looking at how Android could communicate with such a server. The server would grant the client access to ticketing information, and the client would send information about ticket bookings to the server. I'm looking at Java EE for the server as Java is the language I'm most experienced with.I'm aware that Android comes with java.nio and java.net, as well as some org.apache packages, but am also looking for libraries/technologies that would be possible to use with Android.
View 1 Replies
View Related
Mar 3, 2010
I have a simple client-server app on android. the android service communicates with the server via tcp sockets. the service sends a simple String to server which works. the server processes the string and sends back an object to the android service. the object implements the serializable interface. the object "leaves" the server successfully but at the point where the android service receives the object (socket.readObject()
View 1 Replies
View Related
Sep 21, 2010
I am new to developing applications for android but have developed my first app. I have following questions.
1. Is it possible to create a client server app? I mean the application on one phone acting as server and applications on other phones sending/receiving data from it?
2. Create a wifi network (may be using bluetooth) for the above client server app. The idea being not to use the mobile service provide network but rather a local network.
View 4 Replies
View Related
Nov 11, 2009
I have created a simple server and client both on android phone or emulators. The code...
View 4 Replies
View Related
Sep 14, 2010
For example,in a website or software on the pc,you could write some news or other things,and then it will update in your android
is there any example of this,or tutorial related about it..
View 1 Replies
View Related
Apr 10, 2013
I'm trying to connect my Android app to a PC server using Socket. Unforunately, the PC server doesn't receive any connection request from the app (there's no connection between them). I'm running the app in android emulator.
I've seen many tutorials and discussions in the internet about this problem and I fellow them literally, but still having the same problem that I mentioned above. the android app is running on eclipse emulator and the PC server on netbeans
the PC server source code:
public class server{
ServerSocket server;
public server() {
try
[code]...
View 2 Replies
View Related
Jun 21, 2010
I'm trying to open tcp connection between android (emulator) and PC. I'm trying to create a new socket and then it crash. the line where it crash: Socket s = new Socket("10.0.2.2", 27015);
View 2 Replies
View Related
Jun 11, 2010
I am able to connect my PC to the local tigase server setup locally(I am using Smack API). Now I am facing problems when I want to connect Android Phone to that server over Wi-Fi. I am able to connect to the local server by using client Beem for android.My XMPP Domain name of the server is my PC name "mwbn43-1" and IP address is "192.168.0.221"(I am able to ping this server from Android Terminal Emulator). In Beem Settings there is an Advanced option where I can specify server I want to connect with(which I have given as IP address).If I don't set this option I am not able to conect.Now here is the snippet of the code I have used for my android client.
View 1 Replies
View Related
Jul 27, 2010
i am new to android and need simple http connection codes for client server(local server in the network) communication in android application.the connection starts when the application is started and if there is any update in the server it should be notified on the client and the server response must be based on the client request.
View 1 Replies
View Related
Jul 29, 2010
Im looking for the concept of creating Java Server to handle Client requests and respond to it , i want to use Google App engine which does not allow Socket connections , so is the client & server in this case will communicate using Http requests? i'll be glad if someone could clarify the logic to me and provide a few lines of code.
View 3 Replies
View Related
Nov 15, 2010
Such like massager app, client/server framework, using tcp long connection using heart beating packet. Cause TCP connection, so when local network is disable or changed, connection would be disconnected. But to the client, it may not be known right now till the next interaction with the SERVER. Is there a general solution to reconnect automatically when network is available again? For example, a broadcast receiver would be triggered when network connection changed, and reconnect when available? Further more, how to check the network capacity, auto-connect the wanted one cause good bandwidth?
View 4 Replies
View Related
Jan 21, 2013
I am trying to create a basic application that transmits GPS co ordinates of the device to a server. I am a complete noobie to socket programming.
As a stepping stone, I am following a tutorial, that creates the server, and the android client, it is designed to send an input from the user to the server and the server prints it on the console.
I'm becoming quite familar with how to set up the basics of the server and the client i.e. opening ports etc. The problem with this is, when hit send, the app crashes, when tested on the emulator, there is obviously an issue, but I can't see it.
When I test with device, and hit send, there is nothing printed to the console. I've attached both the client and server code below, the ip in the code below is for the emulator, I change this to my device ip with testing with it.
****SERVER****
[HIGH]
public class Additional_Server {
private static ServerSocket serverSocket;
private static Socket clientSocket;
private static InputStreamReader inputStreamReader;
private static BufferedReader bufferedReader;
private static String message;
[Code] ....
****CLIENT****
[HIGH]
import android.os.Bundle;
import android.app.Activity;
import java.io.IOException;
import java.io.PrintWriter;
[Code] .....
View 6 Replies
View Related
Oct 24, 2012
I'm going to creating an Android App where 4 players can connect together and play the game together, now the connection is most probably going to be bluetooth, quicker and my app wont be using a online server. But I'm trying to work out which would be best, P2P or client server, a peer to peer connection would be good, but is 4 users connected together ok and stable using bluetooth? A client server solution would be the host would turn into a wi-fi hot spot while 3 others connect to that wifi.
View 1 Replies
View Related
Nov 17, 2009
I have been trying to use httpclient to post data on https (secure). I have searched all forums of android but I could not find any solution that works with httpclient on https. I have seen some solutions using HttpsURLConnection. and SSLContext. I would like to go with httpclient not URLConnection as I require to manage cookies and al. I am looking for your exert advice on above matter..............
View 3 Replies
View Related
Aug 29, 2009
I am new to android development
can u give anybody .....code for simple client server http communication. i don't know how these client interact with server....
can u tel me the steps for this network concept...how we send the url connection to the serve..
View 2 Replies
View Related
Apr 7, 2010
I want to make my phone communicate with computer with socket. I have try many kinds of source in internet. None of them works. The phone always display "HelloWorld <ActivityName>". Log.d() seems not work on my phone, because, I have used that, but nothing was printed.
View 3 Replies
View Related
Jan 25, 2010
I'm completely new to Android, but supposed to learn Android. My question is: Can android connect to a database server like Oracle?
So i have my Android application and i wanna write/retrieve data from a database like Oracle. Please explain a little more how android interracts with Oracle databases.
View 1 Replies
View Related
Nov 15, 2009
Going to grab myself an HTC magic today. Done some searching around and can not wait to finally ditch this POS iPhone.
Anyhow, I'm looking to see if anyone has any info on a mt-daap server and client.
If you don't' know what it is you can look at
Firefly Media Server :: Home Page
it's a clone of the iTunes music sharing service. It allows you to share your music collection over your network.
I have a firefly server setup and share my music colection with all my systems. As well I VPN into my network from work/coffee shop and can listen to my tiny 500GB music colection on my netbook (ubuntu 9.10 btw)
I would love to be able to do the same with my new phone. My curent iphone(jailbroken) has a firefly server that i can share the music from it's ipod side. But alas no client.
View 1 Replies
View Related
Aug 16, 2010
I wants to create a Email client with Exchange &/or Lotus Domino mail server. if possible then provide some code so that I can read and implement as own requirement, other wise at least how to implement.
View 7 Replies
View Related
Jun 5, 2010
I've had a Desire for two weeks now. I was in love with the phone... until this problem came up.
I use Outlook and Microsoft Exchange -- and had read all about how Android synced easily. And it did at first. Then, 10 days ago, the calendar stopped syncing. I got a "Client/Server conversion error," and no sync. The problem only effected my calendar -- mail and contacts were synced just fine. After reading a few forums, I did a "Remove account," re-installed the account. It worked fine again. No big deal.
Then it happened again today. I did the Remove/re-install thing again, and again it was cured. Until six hours later.
Is anyone else having this problem with their calendar/exchange sync? Any solution guesses?
Without being able to sync my phone to Outlook, the Desire I love so much is somewhere between frustrating and infuriating.
View 32 Replies
View Related
Aug 31, 2010
Using application connectbot (for SSH connnection), is it possible to change default ssh port 22 when connecting to the server ?
The SSH server I need to connect simply use another port.
View 3 Replies
View Related
Feb 12, 2009
I am getting the below error when ever i am trying to call the bind service. 02-12 20:17:25.486: WARN/ActivityManager(58): Unable to start service Intent { action=oem.android.proj2.IRemoteService }: not found
I have created the Client-Server application. At the Server site i have used the AIDL to impliment the interfaces in my Service class. At Client site i have exposed the AIDL interfaces and have one Activity that mainly do the IPC mechanism , i mean ServiceConnection, bindService and then call the Serivce of the Client site. But i am getting the error i mentioned during the bindService call.
Could you please let me know the steps mainly i have to follow to run the Client -Server Application. For time being i am running the Client .apk first and then the Server .apk, but the server one giving me error.
It would be great if you could let me know what all permission short of thing to take care, as my Client and Server code are placed at different APks, so do i need to import the Client project in my Server Project, if yes then how to impliment that.
View 1 Replies
View Related