I'm trying to get response from remote server.
I have an app in Android witch takes a picture and needs to upolad it to a server with php.
At first there was no problem, I was able to upload it, but now I need to pass the path where the picture will be uploaded to the server.
I 'am try to develop java server to send push notification in my app.
I succeed to send a notification but i have two problems ...
1/ The message text not appear in status bar (only the name of the application is displayed)
2/ When i click on the notification in the status bar nothing appens (not opening the application)
This is my code of the java server :
//ArrayList<String> userG
I'm new to Java so I need help please. I'm writing an application that will onClick send a String to Server and Server needs to return an image using socket. So my client side is Android and server side is PC - java.
I think that my server side is ok (because he prints out all the system.out.print commands) but my client side is not good. Please tell my where is my mistake?
I'm new to programming in android and I need help to build an application. I want two phones to connect to each other, one being the client and the other being the server. I want the client to have 2 stages. In the first the user would input the ip of the server y click on a button to stablish the connection.
please help me.
I am trying to receive sms and then I am sending SMS message to PHP webserver. When new sms is received then content of that sms is must be passes as NameValuePair parameter to send to web server.
I have searched for a neat explanation of how to use sockets to receive and send files in linux, but i can't find a solution that even works a little bit.
I have a c++ server on linux, and a client which runs in java.
I need it to do the following:
Client needs to be able to send text-commands towards the server.
Client needs to be able to send/receive files towards the server.
Server gets the
My Date format is like as "MM-dd-yyyy hh:mm" its not current date ,I have to send this date
to server but before send it need to change this date to GMT format but when I change by following code:
private String[] DateConvertor(String datevalue)
{
String date_value[] = null;
String strGMTFormat = null;
SimpleDateFormat objFormat,objFormat1;
So I have a server and a client.
The server sends as follow
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException
StringBuilder builder = new StringBuilder();
resp.setContentType("text/plain");
DO A LOT OF THINGS AND WRITE IT INTO ONE JSONARRAY
builder.append(JsonArray.toString());
resp.getWriter().println(builder);
}
and the client