Android :: Connection Between Server/socket When It Moves From EDGE To WIFI And Vice Versa
Dec 16, 2009Does Android keep the connection between the server/socket when it moves from EDGE to WIFI and vice versa?
View 1 RepliesDoes Android keep the connection between the server/socket when it moves from EDGE to WIFI and vice versa?
View 1 RepliesCan we use j2me packages in android development? I just mean to say like for eg: sax parser is supported in both the platforms. So can we code the business logic in j2me platform and use that class in android platforms and vice-versa?
View 1 Replies View RelatedI created a xsd and I created Java objects using Castor. Then I imported this in my Android project and tried to build an XML from the object, using the marshal method. Marshaller.marshal(v, writer); I received some wired exception trouble processing "javax/xml/parsers/DocumentBuilder.class":... So my question is Can I use Castor inside Android, If yes how can I work around this. If no, what is the neat solution available to convert object to xml and xml to object in Android, similar to Castor.
View 2 Replies View RelatedI know, that I get the same result with both code snippets
View 2 Replies View RelatedI have to convert a byte array to string in Android, but my byte array contains negative values. If I convert that string again to byte array, values I am getting are different from original byte array values. What can I do to get proper conversion?
View 7 Replies View RelatedI have some back end web services, SOAP web services. I would like to create an android client to use these. I'm under the impression that SOAP style web services are non trivial to setup on android, and I would prefer to use REST if possible Is there any utility that can convert REST calls to SOAP and back again? Or will I need to create my own application that listens for REST calls, makes the appropriate SOAP calls, then sends the response back as REST?
View 1 Replies View RelatedHow do I export or import mobile bookmarks from a browser (i.e. Chrome, Firefox, etc) to my PC and vice versa.
View 2 Replies View RelatedI have been trying to setup a Droid to Droid 3G connection. I can confirm that all works great in wifi mode. The Droid can make connection requests (Http, Telnet, raw sockets) in 3G, but I cannot get the Droid to accept a socket connection in 3G mode. I was told by Verizon that a special license may be needed to accept socket connection requests and they would send me some information. So far none has been received. If anyone knows how to program the Droid to accept socket connection requests over 3G, please respond. Also if anyone knows why this not allowed please respond.
View 10 Replies View Relatedwheres the option or the settings screen to choose either IMAP or POP
View 1 Replies View RelatedDoes anyone know how you send your photos from your Droid Eris phone TO the vzwpix.com (pixplace) or vice versa? It was pretty straightforward on my old Dare, but now the options to send there aren't as apparent.
View 4 Replies View RelatedI am playing around a bit with peer-to-peer communication with android devices.I have written a basic program that creates a listening ServerSocket on each phone using the application. Using the application you can also connect to other devices that is listening, by connecting to the remote ServerSocket. Nothing strange about that.My problem is that it seems that the listening port is not open for connection on different devices. I can connect to my HTC Desire, works like a charm. But connecting to a HTC Hero I get timeout, same if I try to connect to the emulator. But connection FROM the emulator to the Desire and FROM the Hero to the Desire works like a charm. Whats up with this? No security apps is installed and both devices(and the emulator) is running 2.1.
View 1 Replies View RelatedOn Windows 7 laptop. Htc sync is installed, but so far out of about 30 tries i have only managed to connect the phone once. I'm hoping to root my phone, but am not gonna have any luck if they can't bloody see each other!
View 6 Replies View RelatedSo Im writing an application to communicate to a Wi-Fi enabled Arduino board with a static IP...
This is what Im trying to do...
1.) Enter Ip and Host
2.) Connect
3.) Simply send either a "0" or "1" to the arduino board
There are two activities at the moment, one to enter the IP and port of the Board (which is set from the board itself) and one to send data to the board. When i comment out the connection methods in the Communicator class the app swithches activities without any issues, but when i un-comment them and attempt to connect, the app immediately closes after i attempt to connect.
Code:
package car.test.namespace;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
[Code]...
Code:
package car.test.namespace;
import java.io.*;
import java.net.*;
public class Communication {
[Code]...
Code:
package car.test.namespace;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
[Code]..
Also, im not even seeing the "Connection Failed" message, the app is just shutting down,.
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:................
I have to create an app that allows other devices to connect to my android terminal via wifi, without access point, so my device should become an access point to host their connections. i don't have to share the internet connection with them, just have to make them connect directly to me, then they send a UDP packet, and I have to read it, so on my device will have to be an UDP server after the connection creation. how to manage wifi? any step to follow? my android version is 4.0.3
View 1 Replies View RelatedI am looking for a way to automate my Android phone connecting to an SSH server when the phone connects to an unsecured wifi network. My understanding is that this is adequate to keep my traffic from being sniffed by DroidSheep (Android), FireSheep (Windows), or other packet sniffers.
I'm using this guide to connect my Android phone to the SSH server: link HERE
Is the Tasker app the best way to do this?
- if yes: how do I trigger the launch of the SSHTunnel when the trigger event (connection to unsecured wifi network) occurs?
- if no: what is a better way?
Note: I did a search for SSH (link HERE) and did not see anything covering this.
I'm now facing a very strange server socket problem, I have a server that will listen on a TCP port, I use the following code to do this work. public class RequestListenerThread extends Thread.
View 4 Replies View RelatedI am attempting to open a ServerSocket on my Android device to receive network connections, but do not seem to recieve network traffic from them. Running netstat -an on the device shows it is listening on 0.0.0.0:1234, but my connections to telnet to <public ip of Android device>:1234 do not appear (and do not receive a SYN,ACK in response). How can I write an application which will open an accessible server socket? Is this possible? I am thinking that either the ISP (mobile carrier) may be blocking this incoming connection attempts or the Android OS is blocking them (host firewall)?
View 4 Replies View RelatedI have recently developed android application using server socket programming My problem is this its running show slow.
View 2 Replies View RelatedThe service providers in my country are charging for the MBs I downloaded in my GPRS/EDGE connection. So, whenever I want to disable the GPRS, I just change my default APN to something wrong and then correct it when I want to enable it again. I couldn't find another way to enable/disable. I think,Android team assumed that only 3G users with a good data plan only would use this phone. Anyway, I just want to develop an application which can do that automatically for me. However; I couldn't find how to change the APN settings in the docs. but I couldn't find how to use it. Could you please help me? Any alternative ways and/or suggestions are welcome.
View 3 Replies View RelatedSo I have an android application that needs to connect to a socket server. That's simple enough if the socket server was running on my development machine. However the socket server is running on a server not only not on my own machine, but on a different subnet. How would I connect my emulator to the socket server? I understand how the port forwarding works to connect to the local machine, but I'm sort of confused on how I can redirect it across a subnet from my dev machine.
View 1 Replies View RelatedI 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 RelatedI'm working on an Android app that requires both client and server certificate authentication. I have an SSLClient class that I created that works beautifully on regular desktop Java SE 6. I've moved it into my Android project and I'm getting the following error: "KeyStore JKS implementation not found".I've looked online a bit and it looks like there's a possibility that Java Keystores are not supported on Android (awesome!) but I have a feeling there's more to it than that because none of the sample code I've found resembles what I'm trying to do at all. Everything I found talks about using an http client rather than raw SSL sockets. I need SSL sockets for this application.
View 1 Replies View RelatedI was developing an app which need to open serversocket.
But, when i open one on poet 80, this throw a BindException :/ iven with the INTERNET permission. Open on other port work (ex: 8080).
Does this mean android not allow me to use this socket?
I am doing a project where I have too develop an application that listens for incoming events by a service. The device that has to listen too events is an Android phone with Android SDK 1.5 on it. Currently the services that call events only implement communication trough UDP or TCP sockets. I can solve my problem by setting up a ServerSocket, but i doubt that's the most power efficient way. This application will be running most of the time, with Wi-Fi on, and I'd like too reach an long battery duration. I've been looking for options on the internet for my question for a while but i couldn't get a real answer.What is the most efficient way too listen to incoming events? Should I make an ServerSocket? or what are my options?Are there any other implementations that are more power efficient?
View 1 Replies View RelatedI noticed that if the Android phone is listening on a ServerSocket on the 3G network, and is then put to sleep with the power button, it no longer listens for incoming connections. The incoming TCP connection does not wake up the phone. Is this there a way to enable waking up a sleeping phone on incoming Server Socket connections, the way that incoming data on a regular Socket does?
View 2 Replies View RelatedI am trying to setup at ServerSocket on my Android phone, and send a char or int or anything from my computer. The code on the phone creates a ServerSocket and then blocks whilst waiting for a connection(plus some more bits if the socket is created. But I'm not getting this point, so left that out!)Basically, the phone is getting to accept, and the computer is not connecting. The xx.xx.xx.xx is the public IP of the phone I obtain programatically (and it matches up with checking on whatismyip.com).I have set the INTERNET permission on the phone. I have also been able to do this in reverse (ServerSocket on pc, client on phone).
View 2 Replies View RelatedI'm working on application that uses a socket connection.I've implemented 2 different Threads for the read() and the write() methods so they are not being blocked by the read.Everything is working well on the WiFi connection but when I switch to GSM connection the connection becomes unstable without any exception being thrown. It means that there are freezes.the write and read seems to work but no data is actually being piped.
View 10 Replies View RelatedI wondered if there could be a specific reason why a server socket could refused a client request connection , the server running on one android device the other on the emulator?
View 2 Replies View RelatedI would like to know what is the recommendation for socket connection management in Android?In our App we would like to be connected to a TCP/IP server when our app is in the foreground or paused. So, create a connection to a TCP/ IP server when the App starts basically, On Create of the launcher activity. However, we do not want to create a new connection and close connection every time an activity is created, paused, destroyed or orientation changed. So, we save the connection object in the App class and the activities will reuse the same connection.Question is when do I close it? I would like to close the socket when the App is "paused", "stopped" or "destroyed". The problem is these messages are not sent in the App context. How can I figure out if the App is in foreground or not? Even the "Terminated" event for an App is not guaranteed to be delivered. So, in that case how do I know when to disconnect?
View 2 Replies View Related