Android :: Communication Between Two Emulators Located On Two PCs Connected Via LAN
Jun 4, 2009
I am trying to port a VoIP application based on SIP protocol to android.
I want to test this application first on two emulators running on two different PCs connected via LAN.
The problem is that, the communication is not happening when I run the application on two PCs. The same application works when I run it's non-android version on the same PC's.
I have identified the following problem. Let's say there are two computers C1(192.168.1.101), C2(192.168.1.102) connected in a LAN.
Emulator E1 is running on C1 Emulator E2 is running on C2
The application uses UDP protocol and the port being used is 5060 on both computers.
I have setup port forwarding on both the emulators. This is the command used for that in Android console. redir add udp:5060:5060
When we make a voip call from E1 with the URL 192.168.1.102:5060, then E2 responds to the call, but what ever E2 sends in response is not coming back to E1, and hence E1 is timing out.
When I observed the log files, actually E2 is sending the response to 10.0.2.2:5060, which is the C2's loop back address(127.0.0.1). How do we resolve this issue?
I have gone through the developer guide where they have mentioned about two emulators communicating on single PC. But looks like this concept doesn't work when we run emulators on two different computers.
I tried 'redir' command for port forwarding and added INTERNET permission, still it doesn't work.
My question is, Is it possible to implement this communication on two emulators? and if yes, How to do this?
View 5 Replies
Oct 28, 2010
I wanted to know if it is possible the communication between two Android Emulators started on two different machines networked.
For example
- Emulator A run on machine M1
- Emulator B run on machine M2
Can A and B exchange messages?
If yes, what ip address do I use?
View 4 Replies
View Related
Apr 10, 2010
I know that iphone users can jail break to get the old school emulators and I think that by now, there are some emulators in the apple market. My question is on a couple levels...
- Without jailbreaking, can you get roms on the iphone for free?
- If so how?
- How well does the on screen controller work
- Is the small screen you have to use on the iphone emu an issue?
Also add any feedback you like and your opinion as well. I'm just curious that's all. Hopefully one of you has experience in this field
View 8 Replies
View Related
Sep 9, 2012
Downloaded FoxFi, and love it. Great when I need to use my laptop. But...
Lately, I've noticed it has been having connection issues. I start the hotspot, my laptop "sees" it. And I can connect (shows "connected" in the wifi window next to "FoxFi" on laptop). But, at the top of the same wifi window, it also shows (under "Currently connected to:"), "No internet access" (or something - connected right now on different wifi network, so I can't get the exact wording). But I hope this is clear.
Why this weird contradiction? One part of the window says I'm connected, the other says I'm not.
View 4 Replies
View Related
Dec 17, 2012
I am new to android programming and I am trying to set a connection with the android as a host. I have included the following imports:
import android.content.Context;
import android.hardware.usb.UsbDevice;
import android.hardware.usb.UsbManager;
import android.hardware.usb.UsbInterface;
import android.hardware.usb.UsbEndpoint;
import android.hardware.usb.UsbDeviceConnection;
import android.content.Context;
My problem is when I use this code :m_usbManager = (UsbManager) getSystemService(Context.USB_SERVICE);The eclipse editor shows a message saying that getSystemService(String) is undefined for the type CPrinterCommands(The class that I am using). Quick fix gives as a solution to create a method called getSystemService, however I can't find why I would need to create a method, all the examples I found, none of them had a method getSystemService.
View 1 Replies
View Related
Apr 16, 2010
I would like to use Android for Model-Driven-Software-Development.
For this, I need to locate the Android Model in the SDK. I already searched a while for it, but were not able to find it. Has anyone an idea where it could be?
Is it possible, that it is the AndroidManifest.xml-File in the folder android-sdk-platformsandroid-xandroid.jar? After unpacking this file, I am not able to open that file correctly on Windows XP, because a lot of characters have the wrong character set.
Or is it also possible, that it is only located in the source code?
View 5 Replies
View Related
Sep 17, 2010
I posted this earlier but it disappeared? When the phone is unplugged, it says USB connected, and all of the icons are missing from the top of the homepage (time, signal strength, 3g, etc). The pull down menu is also hard to pull down then is real jerky when it does pull down. When the phone is plugged in, it has the signal for the USB and all the icons return, It also shows a full battery, then tho it is not.
View 3 Replies
View Related
Dec 10, 2009
I wrote a TCP socket client, an android application. On my emulator, it can successfully connect to a TCP sever running in my PC. But, when I deployed the the apk into my real phone, HTC g4, it dosen't work. An exception was raised said "java.net.SocketException: Network unreachable". The situation is, my handset was connected to my PC via USB, and no other connections were available. How can my android application connect to a PC server in the case. I don't know if we can use socket over usb connection. If yes, then why my application doesn't work. If no, then how?
View 2 Replies
View Related
Mar 30, 2010
I have a design problem with my Android components.
My activity is starting a service which is doing the work in the background. What I want is that the service informs the activity about state changes. How can I do this?
Normally I would add an observer but the activity has no reference to the service. Then I was thinking to take AIDL but this is more for inter-process communication.
How is it possible that the service informs the activity about state changes? Both are running in the same process. What can you recommend?
View 9 Replies
View Related
Oct 30, 2010
I have a new Galaxy S. If I go to Market and install an application, everything is done automatically without giving me options.
So, my questions:
a. What is/are the files that are downloaded?
b. Where are files saved to?
c. What happens during installation? Is there just one binary? Or a binary with lots of other files? How can I find out the files that belong to a particular application.
If it is a paid application, how can I save it so that I can reinstall again. I am having so much trouble learning this new phone that I have to restore it to factory state already twice on the first day.
View 7 Replies
View Related
Mar 18, 2010
How does one tell it where to put the AVD? by default it is creating it in my windows home directory under a .android folder. i cannot start my avd if its located over a unc path oavd. our sys admins put all of your home directories on another shared server.
View 1 Replies
View Related
Apr 30, 2010
I tried to invoke another activity from my main acitivty which is located in a jar file.
CODE:..........
Im doing it this way because i only know the name of the class. This works fine but unfortunately, all resource files can't be found while loading the activity from the jar file. at the first occurence of loading a res file there is a ResourceNotFoundException:
CODE:..............
View 1 Replies
View Related
Oct 18, 2010
I am a beginner in Android and i want to establish a serial port communication(UART RS232) library in Android Framework Layer. My applications want to use that libary to send messages to some serial port devices. here we wan to use android as a embedded device and not a mobile device. can you suggest me how to establish a seria communication and to add that library on android framework layer.
View 3 Replies
View Related
Sep 6, 2010
I have to develop a multiplayer game. The game will be supported between different platforms: 1) Two android clients. 2) Android client and a web application (something like facebook and android client for Texas- Holdem game).
I want to handle the communication between the platforms through a service.
I have asp.net (C#) background so I thought to implement the communication using WCF service but I am not sure this is the best choice?! Can you please tell me if my choice is good or should I choose other approach to implement the communication?
View 2 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
Aug 25, 2010
i implemented the xmpp client in android.its working fine.the next task i focused on group communication from android. java code which related to group communication from xmpp.
View 2 Replies
View Related
Mar 19, 2009
Just say I have two applications, each with one activity running on separate processes and I want to send a simple string between them. For the purposes of this example, let us say I have a button that sends whatever is typed into an EditText view to the other application where it is then displayed. Do I have to expose a remote interface via a service that co-resides between the two applications? Or can I do something simpler (is there a way to pass data between processes without defining your interface using AIDL)? Thanks for clearing this up for me, as I seem to be struggling with performing IPC at the moment. I'm pretty sure I have to use the Android IPC path and generate a remote interface using AIDL. I'm just not sure about the binding to service part.
View 7 Replies
View Related
Aug 25, 2009
I'm not *entirely* sure this one is supposed to go here, but anyway :)
Assuming I have two Android-powered devices, connected both to the same 3G network; does the current API of Android allow to have a Service running on one of them being contacted by an Application running on the other one over this 3G network or do I have to go for a more traditional network (e.g. WiFi AP, Bluetooth) ? If so, how do I do it ?
I saw the usual Socket part in the API but it is not clear to me whether this is the way to use the 3G. I also found another discussion related to communication between a laptop and a dev phone ("Sending data to android dev phone using 3G connection") so it seems to be possible.
Does anyone have some details about how to do this?
View 4 Replies
View Related
Sep 14, 2010
How to implement communication with oracle.
View 3 Replies
View Related
Oct 6, 2010
Is there any way to allow communication between a program on a PC and an app on the Android through USB? I've notied some apps can sync through USB so I figure there must be a way.
View 2 Replies
View Related
Jan 22, 2010
I have done socket communication in a single application it is working fine.
But my requirement is i have opened two emulators and i am able to send sms between those two.
Now i want to run server in one emulator(myavd-5554) and client on another emulator(myavd1-5556)
I have used the following code on Serverside public class TCPServerActivity extends Activity
CODE:............................
View 2 Replies
View Related
Sep 6, 2010
I am new to android. I want to set OnclickListner for different buttons which are located in different xml layouts.
View 2 Replies
View Related
Nov 24, 2010
my machine is running window 7.i want to communicate bw two android emulators running on same machine.Emulator 1 is listening on some ip 10.0.2.15 when emulator two tries to create Socket socket = new Socket ("10.0.2.15",8080);it gives exception, unable to connect to 10.0.2.15.does any know how to solve this problem??
View 1 Replies
View Related
Sep 17, 2010
Haven't been able to find an answer to this. But can my DUALSHOCK 3 be used to play games on my Captivate. Games emulated via apps like NESOID and PSX.
View 1 Replies
View Related
Jan 13, 2010
I'm new to Android, but have published iphone and bberry apps.I see that I have to create an emulator using the SDK, before I can write and test an app. Why are there no default emulators? Why not at least a Nexus one, or HTC hero emulator shipped with the product? Sure its supposed to be flexible, but why not make it easy to create hello world and play around with a virtual Android phone? Both blackberry and iphone come with default simulators when you download the sdk.
View 8 Replies
View Related
Apr 5, 2012
Is there any way to run two android emulators in eclipse with both the emulators of different versions? like one of 2.3 other of 4??
View 3 Replies
View Related
May 26, 2009
I have just started to develop android application. My question is: Can I communacate with serial port by using android application? If yes, how can I start,need help.
View 3 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
Sep 7, 2010
I want to develop a multiplayer game. The game will provide communication between different platforms:
1) Two android clients (client applications that communicates through a service).
2) Android client and a web application (internet application) which is something like facebook (web) and android client for some kind of game. I want to handle the communication between the platforms ((1) android to android and (2) android to web) through a service.
I have asp.net (C#) background so I thought to implement the communication using WCF service, but I am not sure this is a good choice. Can I handle the communication using WCF or should I use other approach? Can you please recommend me a good approach to implement the communication?
View 4 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