Android :: Emulator / Host Network Setup Issue
Oct 22, 2010
I am trying to test some udp networking between emulator and host and I have a problem with setup. I assigned address 10.0.2.14 to the host interface with 10.0.2.1 as gateway.. Can't ping 10.0.2.15 from my host, neither can i ping 10.0.2.14 from emulator. Ping from emulator to 10.0.2.2 works fine - I can capture that ICMP traffic on the loop back interface of my host, so ICMP works, but how can i create traffic from the host to emulator? Can someone point me how to make it work? Note: firewall on my host is disabled.
View 3 Replies
Mar 10, 2009
I install sdk on centos.At first it works well. But I encounter a strange issue:One day my emulator can not access it's host os's network any more.
View 2 Replies
View Related
Jun 9, 2010
I would like to access a web service provided by one of the machines on my LAN from the android emulator.
If the service was running on the same machine where the emulator is running (called host), I could add a network redirection and access the 10.0.2.2 (host loopback interface in the emulator) with the correct port.
However it is running on another machine on the LAN. I guess I could add another redirection on the host additionally to the above one (would have to fight with iptables though ... ), but does a more simple solution exist ?
View 2 Replies
View Related
Jul 7, 2010
I have a Android phone connected with host computer with USB cable. ADB runs well and I can debug application on phone. The only problem is that the App requires special network setup which I can reach on host but not mobile. Is there a way to let the device send all network operations through ADB and Host network?
View 1 Replies
View Related
Oct 7, 2010
I am trying to setup a simple client/server connection, the server is running on a remote host (Normal Java) and the client is running on my computer on the emulator, it works fine when I try to connect from my machine, but I can't connect over a normal wi-fi internet connection to the remote host, what could be the problem?
View 2 Replies
View Related
Feb 2, 2009
How can my host machine connect to emulator using socket? In my application, I need emulator to open a server socket, then host machine connects to emulator as a client. But when host creates the socket using "10.0.2.15:xxxxx" (xxxxx is the port which emulator is listenning), it doesn't work. I think maybe the address"10.0.2.15" goes wrong. Is it a local address behind the "virtual router" and the host can't find? If so, how to find a correct IP address of emulator?
View 4 Replies
View Related
Oct 27, 2010
Have a server-socket running in an android application, which I debug using the emulator. Using the emulators console and "redir add tcp:8888:8888" I can make the service available to a program running on my development machine (as localhost:8888).
The redir port is however not available on any other network interface, meaning I can't access it through the host-ip on either the local development machine, or from a secondary machine on the network. Anyone know if its possible to make the emulator bind to all network interfaces, or have some other trick to enable other hosts on the network to connect to the emulator?
View 1 Replies
View Related
Mar 9, 2013
I wrote simple server on android with NDK, which will work on port 8888 on android emulator, but i can't connect to it from my client on the host machine.
I added <uses-permission android:name="android.permission.INTERNET"/> in manifest.
I tried to make redirection with telnet:
telnet localhost 5554
redir add tcp:6666:8888
Here code of server:
#include <string.h>
#include <jni.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
[code].....
View 1 Replies
View Related
Oct 15, 2009
I want to to use the browser inside the Android Emulator, and i want to use the proxy settings on my machine, how can i setup this.
Reading the very good manuals of android, they tell me i should start android using the following command
emulator -avd myavd -http-proxy http://168.192.1.2:3300
But still am not able to use the emulator browser. am using the IPAddress for my proxy server.
View 2 Replies
View Related
Apr 30, 2010
this is just an issue with how the emulator is setup, but I'm not sure.
I'm (natively) calling this:
int maxt = 0;
glGetIntegerv(GL_MAX_TEXTURE_UNITS, &maxt);
__android_log_print(ANDROID_LOG_VERBOSE, "Native", "Max textures %d", maxt);
This only outputs 2... could it be possible that I'm going to be allowed only 2 textures? That seems impossible... GL_MAX_TEXTURE_SIZE reports 4096 which is more than enough. I suppose you could lay everything out on a couple of 4096x 4096 images (seems a bit crazy) but anyway... Am I just running into one of things that will be different per phone processor?
View 9 Replies
View Related
Apr 30, 2010
In android emulator, I am in landscape mode and double click the text edit panel. the softkeyboard does not show up. However, it works in portrait mode.
I have check some of posts on line. They said because of hardkeyboard is available in landscape mode. If that so, how can i disable the hardkeyboard. Or is there any setting reason for this problem?
View 1 Replies
View Related
May 21, 2013
I have a problem ( but i think that's more my setup problem).
My phone: i9100g
Rom tested: CM10, SlimBean v5
Neither wifi/usb tethering are working, when I connect my phone to pc it tells me "no access to network".
I'm having same problem with different roms,so i think that i should change my settings,and it's not a bug of the rom. My default APN at "APN Type" was "default,supl". i Have changed to "default,supl,dun" but nothing,tethering doesn't work.
View 2 Replies
View Related
Jan 24, 2010
I've read many postings about problems getting the Android emulator DNS to work properly in certain situations. I have a simple app that makes an HTTP connection to a server on the Internet. If I use an IP address using the latest version of the emulator it works fine. If I use the domain name it throws a java.net.UnknownHostException: Host is unresolved: exception. The identical code works fine on any actual device. Has anyone figured out how to fix this situation? I've spent days trying everything, from using proxy servers to setting up and running a DNS server on my development machine. This situation/experience is a shame, because the emulator seems like such an impressive and well thought out collection of tools for developing and testing apps. However, it is currently useless to me. Is there anyone who can help? A prior thread on the same issue-appears to be the same situation: http://groups.google.com/group/android-developers/browse_thread/threa...
View 3 Replies
View Related
Apr 7, 2010
I'm doing a distributed system using Android for my research project.In order to test it, I have connected two emulator instances in the same host machine. However, I need to put these two instances in separate host machines and make them connect through the local network (Wi-fi).I have seen that the emulator runs behind a virtual router, so it seems that I would have to somehow configure such virtual router, in order to forward my requests.
View 2 Replies
View Related
Aug 5, 2010
I've noticed very poor performance in the emulator (1.6 and 2.1) when trying to complete the forth statement below. It will take 5+ minutes running in the emulator. Interestingly, when I debug on my phone it's not nearly as bad at maybe a minute or so, but still not great. Running the app on my phone without debugging yields great performance (seconds). URL url = new URL(CommonProperties.BASE_SERVICE_URL + "param=1"); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document dom = builder.parse(url.openConnection(). getInputStream()); is there something I can do to speed up network access while using the emulator? Has anyone noticed anything similar?
View 2 Replies
View Related
Aug 3, 2010
How do I simulate a WiFi network using the Emulator?
View 2 Replies
View Related
Mar 16, 2010
How do I monitor network traffic sent and received from my android emulator?
View 3 Replies
View Related
Sep 23, 2010
I am developing an application for android based cell phone from emulator. The application i am developing requires ad hoc network. I do not own the phone or can't get it from anywhere else. So I want to create and establish ad hoc network in that emulator only. I am using standard ADK 2.2. I read somewhere that the information and settings of networks are read through a file called tiwlan.ini. Is this file available even for emulator? If it is, where is it located inside it? If its not, can i copy the file available on Internet and put it somewhere inside my emulator and change system path to read network information to that file's path? If even that is not possible, is there any solution available by which I can establish ad hoc network on emulator?
View 1 Replies
View Related
Jul 16, 2010
I wonder if anybody has ran into the issue where a running emulator would lose network connection all at a sudden for no obvious reason. And I am sure the computer running the JVM is still online.Restarting the emulator seems to fix the issue but it's been a major PITA for me as it interrupts the work flow.I am using 2.1 SDK 7.
View 5 Replies
View Related
Aug 20, 2009
I'm running some service on my android emulator. On android I bound it to 127.0.0.1:6100.
How can I access the service from my development machine? Do I have to redirect?
View 8 Replies
View Related
Aug 26, 2010
i am having difficulties to have my android app running in the emulator to connect to servers in my local network.i am getting a java.net.UnknownHostException but the servers are resolvable fine from the machine where the emulator is run.
View 2 Replies
View Related
Nov 11, 2010
I'm trying to write an application that needs to know when there is no IP network connection available. I am using the android.net.conn.CONNECTIVITY_CHANGE broadcast event along with ConnectivityManager to react to the changes in state to achieve this, but I'm having problems testing my set up in the emulator.I have tried both flight mode and pressing F8 to disable the "Cellular Network" but even with both of these engaged the application still "sees" the underlying network.Has anybody managed to find a way to simulate a total lack of network access?
View 3 Replies
View Related
Mar 11, 2010
Is it possible to activate the network location provider on the android emulator? Maybe with a fake cell id?
View 1 Replies
View Related
Apr 30, 2010
I only get a phone signal about a third of the times i start the emulator. I've read on these groups that you have to have an internet connection before starting the emulator. Since i'm connected to the internet 24/7 :) this is not the problem I've also read somewhere that you should try do disable all other network connections (which i've done) and the problem persists. I'm using Windows 7 and Android 2.1 + API's emulator. You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android
View 2 Replies
View Related
Sep 30, 2009
What are the settings required to access network for those who dont have ADSL connection?
View 1 Replies
View Related
Aug 11, 2010
I bought my Xperia x10 mini yesterday, and one of the first things I did was to set it up for WiFi in my house (which I already have 2 laptops and a stationary PC connected to). Setting it up was easy and quick, but my phone doesn't find the network, not even if I am standing right beside the router. I have tried to restart the WiFi connection, restart my phone, delete and re-add the home connection, but the phone still doesn't connect to the network.
The network's SSID isn't broadcasted for security reasons, could this be the problem? When I search for networks, it doesn't find any 'unnamed' networks like the windows pcs do. (which is normally the one I need to connect to.) Is there something wrong with my hardware? Or my software (my phone is completely up-to-date)? (Except broadcast the SSID, which is not an option..)
View 3 Replies
View Related
Jul 9, 2010
I have an android application that parses some HTML, downloads an image, and displays it. I'm using an AsyncTask to do the HTML parsing and image downloading, but that shouldn't be relevant. I never have a problem when I'm on WiFi on my phone, when I'm using the Eclipse debugger on my phone, or when I'm using the emulator. When I have my phone on the cell network (even with pretty good reception), the image sometimes fails to display. I'm having a hard time figuring out what is wrong, since the problem cannot be reproduced in the debugger. Does anyone have any idea what could be wrong?
Update: I have narrowed it down to the image downloading function. This way my original code:.......................
View 1 Replies
View Related
Mar 17, 2010
How to trace the "Gallery" in the Eclipse?
View 2 Replies
View Related
May 7, 2009
Hi,
I would like to see how my app works on a 800x600 android netbook. how can i setup an emulator with this size?
thanks chris
View 4 Replies
View Related
Feb 14, 2013
I'm developing an App that sends keep-alive packets to its server to ensure the connection is still alive.
The server is java based and thus easily to run. I run the server on a virtual machine (Windows 7). After my App is connected and the first keep-alive packet is received (it displays a message in its console output) I disable the network interface in Windows. This step is very important because by disabling it, there is no way to send any packet back to the client informing it about network changes.
The clients are configured to send every 25 seconds a keep-alive packet, so you don't need to wait long.
When you use the sample JavaClient on Windows 7 it takes less than a minute after the keep-Alive packet and an exception is thrown which triggers reconnection (which currently can't occur). This is the expected behaviour.
When you use the sample Android App on an emulator (tested Android version 2 and 4) it is the same behaviour. So in less than a minute after the keep-alive packet it recognises that the connection is dead, throws an exception, this triggers reconnection.
Problem is now when this App runs on a real device (tested several, Xpearia Arc S, one Cyanogen Mod 4 on Galaxy S3 and my Galaxy S3). I've waited 5 minutes, but there was no exception. This behaviour is reproducable.
Since this is a sample App, it uses no wakelock or service, so to test it is important to have it in foreground all the time (don't switch to other Apps or homescreen) and increase your display timeout to a few minutes to ensure that it doesn't go off. Use Logcat-Output to get informed whats happening, because there is no output in the App itself.
Now Sample-Code is in the attachement. Something had gone wrong. The Code consists of 3 Eclipse projects which you can easily import.
View 3 Replies
View Related