Android : Access Dev Machine Localhost Via Usb

Mar 26, 2010

My activity needs to communicate with a java server located on my dev machine. Actually, using the emulator, I can access the server socket via the special 10.0.2.2 address. Now I'd like to test my app on my phone connected via usb, but it seems like I can't use 10.0.2.2 to access my dev machine localhost anymore. Naturally using a wifi router and a proper lan addressing does the trick, but I need to use usb connection instead. Any hint ?

1. Emulator-based scenario: standard java server running on my pc @localhost:15000 android java client running on my emulator. When the android app needs to contact the server it uses 10.0.2.2:15000 like specified here. Everything works fine.

2. Proper wifi scenario with physical connected device: standard java server running on my pc @192.168.1.10:15000. android java client running on my device with 192.168.1.11 address assigned. When the android app needs to contact the server it uses 192.168.1.10:15000 and everything works fine too.

3. Desired scenario: standard java server running on my pc @localhost:15000. android java client running on my device connected via usb cable. No network is active. When the android app needs to contact the server it tries to connect to 10.0.2.2:15000 but instead an exception is thrown (Network unreachable). It seems like special address 10.0.2.2 works only for emulator instances. I just wonder if in the adb/adt suite there's a way to access pc address from the device connected via usb cable.

Android : Access dev machine localhost via usb


General :: File Access From Locked Down Win XP Machine

Sep 17, 2012

The situation is this: at work the computers are heavily locked down. By that I mean that you can not download and install anything, no cd rom access and no usb access. they run win xp (some of you may be too young to have heard of this)

I have recently discovered, however, that when i plug my galaxy s3 in, the pc sees it as a digital camera, and i can access every folder on the internal sd card through windows explorer. i can then transfer any file i like to the computer This never happened on my g note, nexus s, or any other device.

Now, I can only confirm that the above works on xpower 2.5 ics custom rom. when I changed to hypergalaxy jb rom, there was no access to my phone via the pc.

how and why this works, and how i might use a hack to enable any usb device on such a locked down pc?

View 1 Replies View Related

Sony Ericsson Xperia X10 :: Can't Access Micro SD Card From My Linux Machine

Jul 28, 2010

I just got X10 with Android. Unlike the blackberry that I used to own I cannot access the microSD card from my linux machine. It detects it but does not open it for file transfers. I replaced the microSD card with the one I had in Blackberry and the phone accepetd it and was able to find all the media files on it. However the linux desktop (Fedora 12) still could not access it. Note this is the same SD card that I used in BB and all the files there were transferred using this linux machine before. Is it something in SE X10 that is blocking this.

View 10 Replies View Related

Android :: Setup Android Emulator To Access The LAN Of Host Machine

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

Android :: Connecting Localhost To App

Mar 24, 2009

I am trying to build an application on android which retrives data from a web server, im using my localhost for the webservices. i have developed jsp page to generate the data and pass to the android app. the data is in xml format.

In the andorid app i keep getting a socket exception while trying to open http connection using local host and the url includes jsp file and http post parameters. i have set the permission in the manifest file, still no luck.

Below are my codes, im sure im missing something somewhere.

CODE:................

View 4 Replies View Related

Android :: Test The Localhost In Emulator

Feb 10, 2010

My web application runs in localhost server. In my emulator the URL is http://localhost:8080/myaction

Is it possible to retrieve the informaion from the server?

View 1 Replies View Related

Android :: Http Server At Localhost ?

Sep 3, 2009

Is it possible to do something like WebView#loadUrl("http://10.0.0.2/ index.html") with service acting as local http server? Where would one start? Will I need at least partial http server implementation that would listen on the socket?

View 9 Replies View Related

Android :: Connect To Localhost On A Nexus One?

Sep 2, 2010

I have a web service running on my local machine, and I used IP address 10.0.2.2 to connect from the emulator to that web service, but when I try that on a Nexus One connected via USB, I get a timeout. Is there a way to access my machine from a real phone like I can from an emulator?

View 8 Replies View Related

Android :: How To Trace Localhost Proxy Connection?

Jun 16, 2010

I'm currently trying to debug an issue with my application and I wanted to see if my internal proxy is sending the data in the proper order. Is there any way to essentially sniff my proxy pipe?

View 3 Replies View Related

Android :: How To Browse Localhost On Device Phone Networking?

Jul 31, 2010

I try to browse localhost on my htc magic. I have connected my device with eclipse via usb. browsing http://10.0.2.2 I get a "Page not avialable. I remember, some days ago it worked but on the emulator I am able to browse localhost?

View 1 Replies View Related

Android :: Localhost HttpClient Connection Refused Error?

Oct 8, 2009

I was just wondering if anyone solved this problem. Googling gives tons of posts having this question but not one with a proper reply. I tried literally every combination of the following two pieces of code with and without proxy:

CODE:....

I am trying to connect to a site on my intranet (its not localhost). I've tried the following:

Setting Proxy inside Eclipse settings. Setting my own localhost and writing a small php script that takes the url, connects to it and then gets the file from the intranet site - This works from the Browser though! It does not work when I use the 10.0.2.2 IP address

View 1 Replies View Related

Android :: Webview Loadurl Cannot Load Webpage From Localhost Web Application?

Sep 1, 2010

I came across an interesting issue when testing android 2.2.

My testing was to use webview api,webview.loadUrl(url);

If url is from any public domain, ex, www.google.com, the web content is rendered very well.
[url]

If url is from local host, ex, tomcat with port 8080, the web content is rendered as well.
[url]

But if url is from other port, ex, websphere with port 9080, the web content is not rendered.
[url]

There is no exception thrown, and it shows blank on the emulator.

Is there any setting needed for different port?

View 2 Replies View Related

Android :: Java.net.ConnectException: Localhost/127.0.0.1:8000 - Connection Refused

Apr 17, 2009

I'm getting:java.net.ConnectException: localhost/127.0.0.1:8000 - Connection refused and...i have <uses-permission android:name="android.permission.INTERNET" /> declared in my manifest.xml What am I missing?

View 5 Replies View Related

Android :: Development Machine

Nov 24, 2010

With the latest SDK release, and the ability to download separate platforms releases into the SDK, the hardware resources required to develop for Android have increased significantly. Assuming that the developer targets all currently available seven platforms - that could take your dev machine to its knees. Taken alone the 'Android SDK Content Loader' takes nearly two minutes on a dual-core machine with 2GB memory.

As the title suggest the reason for creating this wiki is for everyone to list their development hardware configurations, and thus determine what is a well-suited machine for Android development.

The secondary reason for the wiki is that I'm trying to get my employer to provide me with a decent machine for development as I'm currently forced to work on a nearly 4 year old randomly-built machine, and expected to deliver great results. However, the reality is that my system keeps running out of memory, and I can hardly get a chance to write a few lines of code in between the numerous crashes.

View 6 Replies View Related

Android :: Connecting Emulator In Another Machine

Aug 26, 2010

I need to test my android app 24h day and I have 3 ubuntu boxes to do it. I would like to connect my development system (MOTODEV Studio 1.3) to a Remote Device.

Well, the interface ask me about ip for machine and port to connect to.

But it doesn't. I found that the adb sever on remote seems not to listen to external ports, only internal loopback, making connections machine-machine impossible.

Could it be true? If so, why there is a section on Device to connect to Android Remote Device on MOTODEV Studio?

I've found an explanation and a workaround in this post (http://rxwen.blogspot.com/2009/11/adb-for-remote-connections.html) but it seems complicated and post's links doesn't work, so I'm confused whether there is a solution to do that.

View 1 Replies View Related

Android :: Sharing Machine For Development

Dec 10, 2009

We have a fast and powerful machine(Ubuntu 64bit) and we are sharing it for Android development. But when running multiple eclipse (with ADT) instances (by multiple users), we are getting the following error:

Could not open Selected VM debug port (8700). Make you do not have another instance of DDMS or of the eclipse plugin running. If it is being used by something else, choose a new port number in the preferences.

And some of the process names are not shown. It shows a bug with red- circle and a question mark instead.

I tried to change the port number under windows-preferences-Android- DDMS-Base local debugger port to 8800, etc. but it does not seem to help. (closed and reopened eclipse)

I ignored this, selected the process and it shows 8607/8700 (I found the process ID I want to debug using adb shell, ps)

And then I tried debugging this. It throws "failed to connect to remote VM"

Is it just not possible for multiple developers to debug different Android applications using multiple eclipse instances at the same time? If it is possible, can somebody please tell how we can do that?

BTW, it did not allow me to launch emulator, while somebody else is running one. I had to change permission to /tmp/android folder.

View 3 Replies View Related

Android :: Run On Virtual Machine For Development

Jul 15, 2010

Currently I am using Android emulator for development, but it is very slow. I am looking for some android port that can run on real CPU.

For example I installed this product http://www.android-x86.org/documents/installhowto on VMware, and it seems to work much faster, but I have no idea how to setup network connection here.

The question is if some one is using alternative android setup for development, instead of emulator? If so, a link to configure instructions would be great.

View 1 Replies View Related

Android :: NDK Installation On Windows XP Machine?

Mar 5, 2010

I am trying to install and run Android NDK on my windows xp machine. I am new to NDK and looking for some help in understanding the installation process. I have downloaded cygwin and GNU Make 3.81 but running the build host-setup.sh command results in a 'Could not find a valid GNU Make executable'.

View 4 Replies View Related

Android :: Simulating A Slot Machine

Jul 24, 2010

I am looking to simulate a slot machine, now so far I am just animating drawables and looping it to create the effect. I was wondering if I could achieve this through a listview instead. I tried looking at this approach but I cannot get it to loop back to the beginning after it reaches the end.

View 3 Replies View Related

Android :: Can Recommend A Slot Machine App

Sep 9, 2010

I am looking for a slot machine with multi-line betting.

I had one, but did a factory reset and now cannot find it on the market.

Here is a pic of a similar slot machine, so you see what im looking for.

I dont mind if its free or paid, thank you.

View 6 Replies View Related

Android :: Changing From One Dev Machine To Another - Keystore

Aug 27, 2010

To this point, I've been doing development on multiple machines but always packaging for deployment on the same machine. If I want to package for deployment on another machine, will simply copying the keystore file to the new machine do the trick? Anything else I need to be concerned about when doing this?

View 6 Replies View Related

General :: How To Run Android Within One Virtual Machine

Mar 1, 2014

Is there a way to run Android by a Virtual machine within one PC/Desktop? I've got that Virtualbox is not the option for this.

View 3 Replies View Related

General :: Android Answering Machine App?

Jun 6, 2012

I'm looking for an Android application, that makes answering machine, but can not find it anywhere .... You know of any application with that function?

View 9 Replies View Related

Android :: Running Emulator On A Remote Machine

Sep 8, 2009

Is there any way to connect the debugger to an emulator running on a remote machine? It's using TCP so I suppose it shouldn't be too difficult, but I can't figure out how. I would like to run the emulator on my (fast) laptop and do my coding on my (slow, but with bigger screen) desktop machine.

View 4 Replies View Related

Android :: C Development - Virtual Machine - Allowed

Apr 4, 2009

I'm the lead developer of TotalCross, a virtual machine that's just like the one used in Android, and targetted for small devices. Currently, using TotalCross, you write programs completely cross- platform among Palm OS 5, BlackBerry, iPhone, Windows 32, Windows CE (2,3,4,5,6) and Java-enabled platforms.

We plan to port TotalCross to Android, but i'm concerned about the legal way. I'm aware that there may be hack C APIs for Android, but will these APIs allow the users to sell their applications in a legal fashion?

Btw, what is legal and what's not legal in Android? I could easily port our VM to Android if there were a standard C api on it. However, all i see is Java APIs. I could also port TotalCross to run over the Java API, but i'm concerned about speed. I believe our VM is faster than the one in Android (actually, it is a couple times faster than the BlackBerry VM).

View 6 Replies View Related

Android :: Connect To Development Machine From Device

Sep 29, 2009

How to connect to development machine from device?

I can easily do this from Emulator, but from device I have connection timeout exception.

Here is my code:

code:..................

View 2 Replies View Related

Android :: Need Nearest / Cheapest Cash Machine

May 17, 2010

We have just released a new app onto the Market which helps you find your nearest Cash Machine or ATM, its called Cash Machine. We have had to charge to this (99p!), but we believe its good value for money with the following features: - Lists nearest ATMs in list or map format - Find by current location GPS/Network - Find by postcode or place name
- Each result displays charges (if any) that are taken by the machine/bank. This version covers the entire , please give it a go and let us know of any feedback (We also have a German version out GeldAutoMat DE, available in German only in Germany, Austria and Switzerland).

View 1 Replies View Related

Android : Apk Installation On Mobile From Linux Machine

Sep 14, 2009

[ Attached Message ] From: Pedro Fernandes <pe...@isr.uc.pt> To: android-developers@googlegroups.com Date: Mon, 14 Sep 2009 19:01:01 +0100 Local: Mon, Sep 14 2009 2:01 pm Subject: [Fwd: [Fwd: [android-developers] Re: apk installation on mobilefromLinux machine] Code...

View 3 Replies View Related

Samsung Captivate : Need To Have Answering Machine App For Android?

May 18, 2010

Is there any answering machine app for Android ? I have found one but it answers only by sending SMS to someone but I need something real so I can record message and when someone calls it answers the call with preset voice message. I need that often when I wash my car outside or play with my dog and I leave my phone inside the house.

View 9 Replies View Related

Android : How To Install Apk In Device Using Window Machine

Jul 27, 2010

I want to know how to install apk in device using window machine.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved