Http connection from Rhodes application

52 views
Skip to first unread message

diegog

unread,
Nov 12, 2009, 10:01:52 AM11/12/09
to rhomobile
Hi,

I want to consume REST Rails services from a Rhodes application. Can I
do this without using RhoSync server? I want to do something like:

http = Net::HTTP.new(uri.host)
http.post...
http.put...
http.delete...
http.get...

All of the examples I have seen use RhoSync storing local data on the
device.. is the "net" library available for Rhodes?

Thanks in advance!
Diego

Adam Blum

unread,
Nov 12, 2009, 10:26:06 AM11/12/09
to rhom...@googlegroups.com, rhomobile
The team is hard at work on net/http in Rhodes as we speak. We're
committed to it by end of year, hopefully sooner

Sent from my iPhone

Diego Gaitan

unread,
Nov 12, 2009, 10:57:04 AM11/12/09
to rhom...@googlegroups.com
Hi Adam, thanks for your response.

I have another question. If I choose to open source my mobile
application do I have to pay any money to Rhomobile? I mean $500 for
Rhodes and $5,000 for RhoSync just in case I choose to use RhoSync?

Thanks again,
Diego

Adam Blum

unread,
Nov 12, 2009, 12:41:27 PM11/12/09
to rhom...@googlegroups.com
If you open source your entire application (including whatever backend or existing web app you are connecting to), you are compliant with GPLv3 and thus do not need to purchase a commercial license. 

As a courtesy we would request that you let us know where your source is posted (RhoHub and GitHub are great places to do so).  There are third party open source advocates who look for license violations.  We like to let them know who is compliant ahead of time. 

- Adam

Diego Gaitan

unread,
Nov 12, 2009, 2:37:50 PM11/12/09
to rhom...@googlegroups.com
Thanks Adam,

if I buy the RhoHub subscription do I pay $5,000 for RhoSync too? or
does RhoHub subscription payment replaces that?

Thanks,
Diego

Adam Blum

unread,
Nov 12, 2009, 7:43:55 PM11/12/09
to rhom...@googlegroups.com
Diego,

A RhoHub subscription includes a RhoSync license. 

But we do not make quality of service guarantees on RhoHub (guaranteed uptime, etc.).  Also there is certain kinds of information (see our terms of service where spell those out, but it includes personal financial and medical information) that we do not let you have on RhoHub.   We also do not scale RhoHub beyond 1000 users.  

- Adam

jeffb

unread,
Nov 15, 2009, 8:34:45 PM11/15/09
to rhomobile
On Nov 12, 12:41 pm, Adam Blum <a...@rhomobile.com> wrote:
> If you open source your entire application (including whatever backend or
> existing web app you are connecting to), you are compliant with GPLv3 and
> thus do not need to purchase a commercial license.

Does this mean that if you're using rhosync to pull data from the
flickr api, flickr needs to be open source? This seems incredibly
limiting. Will the net/http addition also include json or xml
libraries?

Thanks,
jeff

>
> As a courtesy we would request that you let us know where your source is
> posted (RhoHub and GitHub are great places to do so).  There are third party
> open source advocates who look for license violations.  We like to let them
> know who is compliant ahead of time.
>
> - Adam
>
> On Thu, Nov 12, 2009 at 7:57 AM, Diego Gaitan <diego.gai...@gmail.com>wrote:
>
>
>
> > Hi Adam, thanks for your response.
>
> > I have another question. If I choose to open source my mobile
> > application do I have to pay any money to Rhomobile? I mean $500 for
> > Rhodes and $5,000 for RhoSync just in case I choose to use RhoSync?
>
> > Thanks again,
> > Diego
>
> > On Thu, Nov 12, 2009 at 10:26 AM, Adam Blum <a...@rhomobile.com> wrote:
>
> > > The team is hard at work on net/http in Rhodes as we speak. We're
> > > committed to it by end of year, hopefully sooner
>
> > > Sent from my iPhone
>

evgeny vovchenko

unread,
Nov 17, 2009, 5:20:32 AM11/17/09
to rhom...@googlegroups.com

Added to 1-4-unstable branch :
http://wiki.rhomobile.com/index.php/Rhodes#net.2Fhttp_library_support

Regards,
Evgeny.

Brian Moore

unread,
Nov 18, 2009, 7:06:18 PM11/18/09
to rhom...@googlegroups.com
I have changed this slightly as part of implementing generic extensions.
Wiki page is updated - only change was what you put in your build.yml file.

Brian
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups "rhomobile" group.
> To post to this group, send email to rhom...@googlegroups.com
> To unsubscribe from this group, send email to rhomobile+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/rhomobile?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>

groovetrain

unread,
Dec 2, 2009, 1:16:40 PM12/2/09
to rhomobile
So, I've got the HTTP request working and returning valid data in the
iPhone simulator (using 1-4-unstable branch). Obviously, https isn't
implemented as it depends on natively built libraries like openssl, am
I wrong?

My question is-- does Net::HTTP with https have any chance of being
implemented in a future release, even in 1.4? Can I submit a formal
request for it somewhere? I think there's a lot of others out there
that would benefit from this feature.

For my application, I'm calling my remote api's that I'd rather keep
behind https only, but now I guess I'll have to open them up to non-
ssl requests.

Thanks so much for taking the time to add the Net::HTTP libs to
Rhodes.

Groove

On Nov 18, 7:06 pm, Brian Moore <br...@rhomobile.com> wrote:
> I have changed this slightly as part of implementing generic extensions.
> Wiki page is updated - only change was what you put in your build.yml file.
>
> Brian
>
>
>
> evgeny vovchenko wrote:
> > Added to 1-4-unstable branch :
> >http://wiki.rhomobile.com/index.php/Rhodes#net.2Fhttp_library_support
>
> > Regards,
> >  Evgeny.
>
> > -----Original Message-----
> > From: rhom...@googlegroups.com [mailto:rhom...@googlegroups.com] On
> > Behalf Of diegog
> > Sent: Thursday, November 12, 2009 6:02 PM
> > To: rhomobile
> > Subject: [rhomobile]Httpconnection from Rhodes application
>
> > Hi,
>
> > I want to consume REST Rails services from a Rhodes application. Can I do
> > this without using RhoSync server? I want to do something like:
>
> >http= Net::HTTP.new(uri.host)

Adam Blum

unread,
Dec 2, 2009, 1:40:50 PM12/2/09
to rhom...@googlegroups.com, rhomobile
Please submit a lighthouse request. Pointers to your open sourced code
or a commercial license will weight your request higher.

Sent from my iPhone
> --
>
> You received this message because you are subscribed to the Google
> Groups "rhomobile" group.
> To post to this group, send email to rhom...@googlegroups.com.
> To unsubscribe from this group, send email to rhomobile+...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/rhomobile?hl=en
> .
>
>

evgeny vovchenko

unread,
Dec 2, 2009, 5:07:40 PM12/2/09
to rhom...@googlegroups.com
For Non-BB platforms we can just include openssl c-library to rhodes, but
for BB it will be much longer story.

groovetrain

unread,
Dec 3, 2009, 2:47:40 PM12/3/09
to rhomobile
Is anyone else having issues with this library and the Android
emulator? I'm getting an error:

Server Error
Error: getaddrinfo: No address associated with hostname
Trace:
lib/net/http.rb:585:in `initialize'
...

I tested my android app and CAN browse the internet, but I'm wondering
if Net:HTTP is blocked by the device somehow?

Groove

On Dec 2, 5:07 pm, "evgeny vovchenko" <evgenyvovche...@gmail.com>
wrote:
> For Non-BB platforms we can just include openssl c-library to rhodes, but
> for BB it will be much longer story.
>
>
>
> -----Original Message-----
> From: Adam Blum [mailto:a...@rhomobile.com]
> Sent: Wednesday, December 02, 2009 9:41 PM
> To: rhom...@googlegroups.com
>
> Cc: rhomobile
> Subject: Re: [rhomobile] Re:Httpconnection from Rhodes application
>
> Please submit a lighthouse request. Pointers to your open sourced code or a
> commercial license will weight your request higher.
>
> Sent from my iPhone
>
> On Dec 2, 2009, at 10:16 AM, groovetrain <joelgreut...@gmail.com> wrote:
>
> > So, I've got theHTTPrequest working and returning valid data in the
> > iPhone simulator (using 1-4-unstable branch).  Obviously, https isn't
> > implemented as it depends on natively built libraries like openssl, am
> > I wrong?
>
> > My question is-- does Net::HTTPwith https have any chance of being
> > implemented in a future release, even in 1.4?  Can I submit a formal
> > request for it somewhere?  I think there's a lot of others out there
> > that would benefit from this feature.
>
> > For my application, I'm calling my remote api's that I'd rather keep
> > behind https only, but now I guess I'll have to open them up to non-
> > ssl requests.
>
> > Thanks so much for taking the time to add the Net::HTTPlibs to

Adam Blum

unread,
Dec 3, 2009, 2:51:47 PM12/3/09
to rhom...@googlegroups.com
I don't think net/http is yet implemented for Android.  It will be before 1.4 is released.

groovetrain

unread,
Dec 3, 2009, 2:52:11 PM12/3/09
to rhomobile
I checked the application settings for my app, and it says that it has
"full Internet access"

On Dec 3, 2:47 pm, groovetrain <joelgreut...@gmail.com> wrote:
> Is anyone else having issues with this library and the Android
> emulator?  I'm getting an error:
>
> Server Error
> Error: getaddrinfo: No address associated with hostname
> Trace:
> lib/net/http.rb:585:in `initialize'
> ...
>
> I tested my android app and CAN browse the internet, but I'm wondering
> if Net:HTTPis blocked by the device somehow?

groovetrain

unread,
Dec 3, 2009, 3:45:50 PM12/3/09
to rhomobile
Ah, thanks, Adam.

The Rhodes team has no idea how far I'm getting in my app in so short
a time because of this great product. Keep up the awesome work, guys!

Groove

testclubtuki1 asdjfljas

unread,
Dec 4, 2009, 9:54:35 AM12/4/09
to rhom...@googlegroups.com

Hi,

I have one problem in android platform.

I am now using yahoo map for get map for address which are entered by user.

But, I can't find latitude and longitude for address which are entered by user.

If u have any sample code.Now,I am get map using JavaScript.
If u know how we get response from java script in rho hub and read latitude and longitude
from XML file.Please help me for this problem.

Thanks,
Kishor

groovetrain

unread,
Dec 4, 2009, 10:05:06 AM12/4/09
to rhomobile
So you're using javascript to get the XML, and javascript needs to
parse the XML and read from it? Then take the latitude and longitude
and go to a Yahoo map with them? If this is all javascript, it really
doesn't belong in this thread.

Groove

On Dec 4, 9:54 am, testclubtuki1 asdjfljas <test.clubt...@gmail.com>
wrote:
> Hi,
>
> I have one problem in android platform.
>
> I am now using yahoo map for get map for address which are entered by user.
>
> But, I can't find latitude and longitude for address which are entered by
> user.
>
> If u have any sample code.Now,I am get map using JavaScript.
> If u know how we get response from java script in rho hub and read latitude
> and longitude
> from XML file.Please help me for this problem.
>
> Thanks,
> Kishor
>
> > > > > >>> To post to this group, send email to rhomob...@googlegroups.comTo
> > > > > >>> unsubscribe from this group, send email to
> > > > > >>> rhomobile+...@googlegroups.com<rhomobile%2Bunsu...@googlegroups.com>
> > > > > >>> For more options, visit this group athttp://groups.google.com/
> > > > > >>> group/rhomobile?hl=en
> > > > > >>> -~----------~----~----~----~------~----~------~--~---
>
> > > > > > --
>
> > > > > > You received this message because you are subscribed to the Google
> > > > > > Groups "rhomobile" group.
> > > > > > To post to this group, send email to rhom...@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > > rhomobile+...@googlegroups.com<rhomobile%2Bunsu...@googlegroups.com>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/rhomobile?hl=en
> > > > > > .
>
> > > > > --
>
> > > > > You received this message because you are subscribed to the Google
> > Groups
> > > > > "rhomobile" group.
> > > > > To post to this group, send email to rhom...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > rhomobile+...@googlegroups.com<rhomobile%2Bunsu...@googlegroups.com>
> > .
> > > > > For more options, visit this group athttp://
> > groups.google.com/group/rhomobile?hl=en.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "rhomobile" group.
> > To post to this group, send email to rhom...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > rhomobile+...@googlegroups.com<rhomobile%2Bunsu...@googlegroups.com>

Adam Blum

unread,
Dec 4, 2009, 10:18:52 AM12/4/09
to rhom...@googlegroups.com, rhom...@googlegroups.com
Kishor,

I cant quite see what your question has to do with this thread. You are apparently looking for a web service API which returns lat/long from an address (also known as a geocoding API). There are many out there including geocoding.us but this isn't a Rhodes question. If it's just "how do I parse returned XML in JavaScript" there are many samples of that out there on the internet.

Adam 
Sent from my iPhone

groovetrain

unread,
Dec 4, 2009, 11:04:30 AM12/4/09
to rhomobile
Evgeny,

Here is my code for my http request that is failing as I describe
above:

def post(path,params)
uri = URI.parse('http://myapis.local/' + path)
req = Net::HTTP::Post.new(uri.path)
req.set_form_data( post_hash( params ), ';' )
res = Net::HTTP.new(uri.host, uri.port).start {|http| http.request
(req) }
case res
when Net::HTTPSuccess, Net::HTTPRedirection
res.body
else
false
end
end

Scroll up in this thread to see the exact error I'm getting.

Thanks!

Groove

On Dec 4, 10:18 am, Adam Blum <a...@rhomobile.com> wrote:
> Kishor,
>
> I cant quite see what your question has to do with this thread. You  
> are apparently looking for a web service API which returns lat/long  
> from an address (also known as a geocoding API). There are many out  
> there including geocoding.us but this isn't a Rhodes question. If it's  
> just "how do I parse returned XML in JavaScript" there are many  
> samples of that out there on the internet.
>
> Adam
> Sent from my iPhone
>
> On Dec 4, 2009, at 6:54 AM, testclubtuki1 asdjfljas <test.clubt...@gmail.com
>
>  > wrote:
>
> > Hi,
>
> > I have one problem in android platform.
>
> > I am now using yahoo map for get map for address which are entered  
> > by user.
>
> > But, I can't find latitude and longitude for address which are  
> > entered by user.
>
> > If u have any sample code.Now,I am get map using JavaScript.
> > If u know how we get response from java script in rho hub and read  
> > latitude and longitude
> > from XML file.Please help me for this problem.
>
> > Thanks,
> > Kishor
>
> > On Fri, Dec 4, 2009 at 2:15 AM, groovetrain <joelgreut...@gmail.com>  
> > > > > For more options, visit this group athttp://groups.google.com/
> > group/rhomobile?hl=en.
>
> > --
>
> > You received this message because you are subscribed to the Google  
> > Groups "rhomobile" group.
> > To post to this group, send email to rhom...@googlegroups.com.
> > To unsubscribe from this group, send email to rhomobile+...@googlegroups.com
> > .
> > For more options, visit this group athttp://groups.google.com/group/rhomobile?hl=en
> > .
>
> > --
>

evgeny vovchenko

unread,
Dec 4, 2009, 11:19:05 AM12/4/09
to rhom...@googlegroups.com
So you use local server?
Does it has external IP?

groovetrain

unread,
Dec 4, 2009, 11:30:52 AM12/4/09
to rhomobile
Right, I'm using my local machine. Your questions are hinting at
something that I was afraid of: That the android emulator does not
share my internet connection like the iPhone emulator does. I tried
going to my machine's homepage in the browser in the android emulator,
and it says "server not found", whereas in the iPhone emulator, I can
hit my local machine.

Why is this, and is there a setting that I can use on the android
emulator somehow to make it work, like make it proxy behind my local
machine?

Thanks.

Groove

On Dec 4, 11:19 am, "evgeny vovchenko" <evgenyvovche...@gmail.com>
wrote:
> On Dec 4, 10:18šam, Adam Blum <a...@rhomobile.com> wrote:
> > Kishor,
>
> > I cant quite see what your question has to do with this thread. You
> > are apparently looking for a web service API which returns lat/long
> > from an address (also known as a geocoding API). There are many out
> > there including geocoding.us but this isn't a Rhodes question. If it's
> > just "how do I parse returned XML in JavaScript" there are many
> > samples of that out there on the internet.
>
> > Adam
> > Sent from my iPhone
>
> > On Dec 4, 2009, at 6:54 AM, testclubtuki1 asdjfljas
> > <test.clubt...@gmail.com
>
> > š> wrote:
>
> > > Hi,
>
> > > I have one problem in android platform.
>
> > > I am now using yahoo map for get map for address which are entered
> > > by user.
>
> > > But, I can't find latitude and longitude for address which are
> > > entered by user.
>
> > > If u have any sample code.Now,I am get map using JavaScript.
> > > If u know how we get response from java script in rho hub and read
> > > latitude and longitude from XML file.Please help me for this
> > > problem.
>
> > > Thanks,
> > > Kishor
>
> > > On Fri, Dec 4, 2009 at 2:15 AM, groovetrain <joelgreut...@gmail.com>
> > > wrote:
> > > Ah, thanks, Adam.
>
> > > The Rhodes team has no idea how far I'm getting in my app in so
> > > short a time because of this great product. šKeep up the awesome work,
> guys!
>
> > > Groove
>
> > > On Dec 3, 2:52 pm, groovetrain <joelgreut...@gmail.com> wrote:
> > > > I checked the application settings for my app, and it says that it
> > > has
> > > > "full Internet access"
>
> > > > On Dec 3, 2:47 pm, groovetrain <joelgreut...@gmail.com> wrote:
>
> > > > > Is anyone else having issues with this library and the Android
> > > > > emulator? šI'm getting an error:
>
> > > > > Server Error
> > > > > Error: getaddrinfo: No address associated with hostname
> > > > > Trace:
> > > > > lib/net/http.rb:585:in `initialize'
> > > > > ...
>
> > > > > I tested my android app and CAN browse the internet, but I'm
> > > wondering
> > > > > if Net:HTTPis blocked by the device somehow?
>
> > > > > Groove
>
> > > > > On Dec 2, 5:07 pm, "evgeny vovchenko"
> > > > > <evgenyvovche...@gmail.com>
> > > > > wrote:
>
> > > > > > For Non-BB platforms we can just include openssl c-library to
> > > rhodes, but
> > > > > > for BB it will be much longer story.
>
> > > > > > -----Original Message-----
> > > > > > From: Adam Blum [mailto:a...@rhomobile.com]
> > > > > > Sent: Wednesday, December 02, 2009 9:41 PM
> > > > > > To: rhom...@googlegroups.com
>
> > > > > > Cc: rhomobile
> > > > > > Subject: Re: [rhomobile] Re:Httpconnection from Rhodes
> > > application
>
> > > > > > Please submit a lighthouse request. Pointers to your open š
> > > sourced code or a
> > > > > > commercial license will weight your request higher.
>
> > > > > > Sent from my iPhone
>
> > > > > > On Dec 2, 2009, at 10:16 AM, groovetrain š
> > > <joelgreut...@gmail.com> wrote:
>
> > > > > > > So, I've got theHTTPrequest working and returning valid data š
> > > in the
> > > > > > > iPhone simulator (using 1-4-unstable branch). šObviously, š
> > > https isn't
> > > > > > > implemented as it depends on natively built libraries like š
> > > openssl, am
> > > > > > > I wrong?
>
> > > > > > > My question is-- does Net::HTTPwith https have any chance of š
> > > being
> > > > > > > implemented in a future release, even in 1.4? šCan I submit š
> > > a formal
> > > > > > > request for it somewhere? šI think there's a lot of others š
> > > out there
> > > > > > > that would benefit from this feature.
>
> > > > > > > For my application, I'm calling my remote api's that I'd š
> > > rather keep
> > > > > > > behind https only, but now I guess I'll have to open them up š
> > > to non-
> > > > > > > ssl requests.
>
> > > > > > > Thanks so much for taking the time to add the Net::HTTPlibs to
> > > > > > > Rhodes.
>
> > > > > > > Groove
>
> > > > > > > On Nov 18, 7:06 pm, Brian Moore <br...@rhomobile.com> wrote:
> > > > > > >> I have changed this slightly as part of implementing generic
> > > > > > >> extensions.
> > > > > > >> Wiki page is updated - only change was what you put in your š
> > > build.yml
> > > > > > >> file.
>
> > > > > > >> Brian
>
> > > > > > >> evgeny vovchenko wrote:
> > > > > > >>> Added to 1-4-unstable branch :
> > > > > > >>>http://wiki.rhomobile.com/index.php/Rhodes#net.
> > > > > > >>> 2Fhttp_library_support
>
> > > > > > >>> Regards,
> > > > > > >>> šEvgeny.
>
> > > > > > >>> -----Original Message-----
> > > > > > >>> From: rhom...@googlegroups.com
> > > > > > >>> [mailto:rhom...@googlegroups.com] On Behalf Of diegog
> > > > > > >>> Sent: Thursday, November 12, 2009 6:02 PM
> > > > > > >>> To: rhomobile
> > > > > > >>> Subject: [rhomobile]Httpconnection from Rhodes application
>
> > > > > > >>> Hi,
>
> > > > > > >>> I want to consume REST Rails services from a Rhodes š
> > > application.
> > > > > > >>> Can I do
> > > > > > >>> this without using RhoSync server? I want to do something š
> > > like:
>
> > > > > > >>>http= Net::HTTP.new(uri.host)
> > > > > > >>>http.post...
> > > > > > >>>http.put...
> > > > > > >>>http.delete...
> > > > > > >>>http.get...
>
> > > > > > >>> All of the examples I have seen use RhoSync storing local š
> > > data on
> > > > > > >>> the device.. is the "net" library available for Rhodes?
>
> > > > > > >>> Thanks in advance!
> > > > > > >>> Diego
>
> > > > > > >>> --~--~---------~--~----~------------~-------~--~----~
> > > > > > >>> You received this message because you are subscribed to š
> > > the Google
> > > > > > >>> Groups "rhomobile" group.
> > > > > > >>> To post to this group, send email to
> rhom...@googlegroups.com
> > > šTo
> > > > > > >>> unsubscribe from this group, send email to
> > > > > > >>> rhomobile+...@googlegroups.com
> > > > > > >>> For more options, visit this group athttp://
> > > groups.google.com/
> > > > > > >>> group/rhomobile?hl=en
> > > > > > >>> -~----------~----~----~----~------~----~------~--~---
>
> > > > > > > --
>
> > > > > > > You received this message because you are subscribed to the š
> > > Google
> > > > > > > Groups "rhomobile" group.
> > > > > > > To post to this group, send email to rhom...@googlegroups.com
> > > .
> > > > > > > To unsubscribe from this group, send email to
> > > > > > > rhomobile+...@googlegroups.com
> > > > > > > .
> > > > > > > For more options, visit this group at
> > > > > > >http://groups.google.com/group/rhomobile?hl=en
> > > > > > > .
>
> > > > > > --
>
> > > > > > You received this message because you are subscribed to the š
> > > Google Groups
> > > > > > "rhomobile" group.
> > > > > > To post to this group, send email to rhom...@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > > rhomobile+...@googlegroups.com.
> > > > > > For more options, visit this group athttp://groups.google.com/
> > > group/rhomobile?hl=en.
>
> > > --
>
> > > You received this message because you are subscribed to the Google š
> > > Groups "rhomobile" group.
> > > To post to this group, send email to rhom...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> rhomobile+...@googlegroups.com
> > > .
> > > For more options, visit this group
> athttp://groups.google.com/group/rhomobile?hl=en
> > > .
>
> > > --
>
> > > You received this message because you are subscribed to the Google š

Dmitry Moskalchuk

unread,
Dec 4, 2009, 12:03:30 PM12/4/09
to rhom...@googlegroups.com
Right, your error is because you use hostname which can not be
resolved on android emulator.
Actually android emulator is an isolated virtual machine (qemu based)
so it does not share network settings with host computer. There is
command line parameter '-dns-server <servers>' which allows emulator
to use different DNS servers. So you need to get running local DNS
server to resolve your custom names.

You can also use IPs instead of symbolic names if your HTTP server
does not use name based virtual hosting.


Dmitry Moskalchuk


04.12.2009, в 19:30, groovetrain написал(а):

groovetrain

unread,
Dec 8, 2009, 10:00:35 AM12/8/09
to rhomobile
I ran across this post today:

http://sacoskun.blogspot.com/2009/06/configure-hosts-file-in-android.html

And got my app working on the Android emulator by adding this line
into the android emulator's hosts file:

10.0.2.2 myaps.local

So what I'm wondering is: Is there a way to make the rakefile
automatically push a modified hosts file (if it exists) up into the
android emulator right after it's finished loading the app onto the
emulator?

It's just a shot in the dark, but could be useful. What do you think?

Groovetrain
> ...
>
> read more »

evgeny vovchenko

unread,
Dec 8, 2009, 12:00:58 PM12/8/09
to rhom...@googlegroups.com

groovetrain

unread,
Dec 8, 2009, 1:20:41 PM12/8/09
to rhomobile
Thanks, Evgeny!

On Dec 8, 12:00 pm, "evgeny vovchenko" <evgenyvovche...@gmail.com>
wrote:
> Yes, this is good idea:https://rhomobile.lighthouseapp.com/projects/17413-rhodes/tickets/126...
>
> -----Original Message-----
> From: rhomobi...@googlegroups.com [mailto:rhomobi...@googlegroups.com] On Behalf Of groovetrain
> Sent: Tuesday, December 08, 2009 6:01 PM
> To: rhomobile
> Subject: [rhomobile] Re: Http connection from Rhodes application
>
> I ran across this post today:
>
> http://sacoskun.blogspot.com/2009/06/configure-hosts-file-in-android....
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages