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. ContentProvider returns always null

Hi,

I'm developing my own ContentProvider
my query method is following
*******
SQLiteQueryBuilder sqlBuilder = new SQLiteQueryBuilder();
             sqlBuilder.setTables(DATABASE_TABLE_USER);

              if (uriMatcher.match(uri) == USERID){
                 sqlBuilder.appendWhere(
                    HelloUser._ID + " = " + uri.getPathSegments().get
(1));
              }
              else Log.e("HelloProvider", "Aucun paramtre passe");

              if (sortOrder==null || sortOrder=="")
                 sortOrder = HelloUser.NOM + " DESC";

              Cursor c = sqlBuilder.query(
                 db,
                 projection,
                 selection,
                 selectionArgs,
                 null,
                 null,
                 null);

              //---register to watch a content URI for changes---
              c.setNotificationUri(getContext().getContentResolver(), uri);
              return c;
*****
When I try to call it from another application, in debug mode, this
method is called normally, but the count of record in the Cursor is
always -1 and my calling method get a null Cursor.

What is wrong? Thanks for your help
--~--~---------~--~----~------------~-------~--~----~

2. lock_fb_info

Hi, on 29 kernel framebuffer, new lock_fb_info() is being put
everywhere to protect private info data.

This will make all fb calls to be serialized (eg. MSMFB_BLIT can't run
while doing FBIOPUT_VSCREENINFO (pan update).

How do we resolve this?

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

3. How to determine if application is running on the emulator?

4. Using glColor4x

5. How can I add a new adb command?

6. Looking for tutorials about java.util.Date class

7. Preventing a contact from being added to system group