Is it possible

by Jatin D Patel » Sat, 09 Oct 2010 10:57:48 GMT


Sponsored Links
 I have developed an android app which calls the web service which runs
smoothly on my emulator.

Will the same appl work if i installed the same application on android
mobile device and call the webservice. (server running on my laptop)


-- 
Thanks,
Jatin D N Patel
Masters, Computer Sci.
Suny Binghamton Univ, NY.

You Got To Think HIGH to RISE.

--



Is it possible

by DanH » Sat, 09 Oct 2010 11:41:07 GMT


 Well, at least partly it depends on how you're addressing the server.




--


Sponsored Links


Is it possible

by Rocky » Sat, 09 Oct 2010 18:21:35 GMT


 yes, it will work fine




>



Is it possible

by David Turner » Sun, 10 Oct 2010 19:22:44 GMT


 If the server is addressable from the Internet (i.e. not under a NAT or
firewall that hides it), then it should work
(provided you code uses its public IP address to connect to it).




>



Is it possible

by DanH » Mon, 11 Oct 2010 01:00:56 GMT


 > (provided you code uses its public IP address to connect to it).

That is the key.  The internal Android-to-host IP address (I forget
what it is) cannot be used.




> >



Is it possible

by Kostya Vasilyev » Mon, 11 Oct 2010 02:33:34 GMT


 The special address you probably are referring to only comes into play in
the emulator (mapped to the host computer's localhost).

Right about the possibility of NAT(s) between the phone and the internet,
though.

So accepting connections works on a local network (wifi), but in the general
case, you need a centralized server to dispatch data connections to client
devices.

--
Kostya Vasilyev --  http://kmansoft.wordpress.com 

10.10.2010 21:01  "DanH" <danhi...@ieee.org> :

That is the key.  The internal Android-to-host IP address (I forget
what it is) cannot be used.






<android-developers%2bunsubscr...@googlegroups.com<android-developers%252bunsubscr...@googlegroups.com>

> >



Is it possible

by Lloyd Sheng » Mon, 11 Oct 2010 05:41:41 GMT


 I it's possible if your laptop has a public ip.




--



Other Threads

1. Why cant apps be downloaded to an external SD card??

I have a G1 on its way and I just read that you cannot download/store
apps on the external storage slot.  WTF was Google thinking??  The
built-in memory is a joke in todays tech, having a external slot makes
sense but why cant you store the most important thing about Android on
it??  Please tell me they are planning on fixing this, otherwise I
think I will send this G1 back...
--~--~---------~--~----~------------~-------~--~----~

2. Why cant apps be downloaded to an external SD card??

This discussion shows that a solution is more in sight now than it was
a month ago: 

3. Europeans after the G1

4. Using PAD files for Android application releases

5. R.java file not being generated by eclipse plugin

6. How many threads are created by android vm for each android application

7. IP address for G1 via USB?