[android-developers] Re: Fetch data from android service to HTML

2011-02-08 Thread SREEHARI

Hi Kevin,

Thanks for the reply. What I am trying is to contact the android
server application from an html(jscript) page running in normal
windows browser. I want to fetch the data and want to display it in
the web page. I think ur 3rd suggession will help me. But my doubt is
how can I make the connection from normal html(Browser) with sever
running in Android emulator?

Regards,
Hari

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


[android-developers] Re: Fetch data from android service to HTML

2011-02-09 Thread SREEHARI
Hi Kevin,

What I need is to fetch data from a service running in the  phone/
emulator (android device) to a browser running in some other device.
Let the second device be a PC. That s what I asked how to get data in
a normal browser from an android application.

Regards,
Sreehari.

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


Re: [android-developers] Re: Fetch data from android service to HTML

2011-02-09 Thread Kevin Duffey
Wait.. a server running in the emulator? So your app is a server that will
run on android devices? I am a bit lost as to why a "client" device would
run a server, especially on a mobile phone. Is there a reason you need to do
this? If you're trying to "push" data from a page to the mobile phone, using
a server app on the phone is not the way to go. But perhaps you have another
reason you need to run a server on the phone?

On Tue, Feb 8, 2011 at 9:04 PM, SREEHARI  wrote:

>
> Hi Kevin,
>
> Thanks for the reply. What I am trying is to contact the android
> server application from an html(jscript) page running in normal
> windows browser. I want to fetch the data and want to display it in
> the web page. I think ur 3rd suggession will help me. But my doubt is
> how can I make the connection from normal html(Browser) with sever
> running in Android emulator?
>
> Regards,
> Hari
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: Fetch data from android service to HTML

2011-02-10 Thread Kevin Duffey
You gave no reason as to why you would do this? By this I am trying to
understand if there is a better way to do this, as generally from what I've
read, and based on small size and limited battery of phones, you don't
generally want to run a server on it. Maybe you are doing something the
wrong way, hence why I am asking why you need to do this. If your intention
is to actually allow someone to run a mobile server, possibly with say, wifi
hotspot capabilities so that you can run a web server for demos or something
without having to take a laptop, then..maybe it might make some sense. But
if you're trying to run a server so that you can pull data off the phone
from a web server somewhere else.. there are better ways to do this.

As for actually having a browser reach the phone, the only way that would be
possible that I know if is if the phone is on wifi, and you obtain the
phones ip address. Then in the browser you use the ip address. I don't know
if a phone on 3g/4g gets a viable ip address that you can use outside from
anywhere or not. I would guess not. Much like many ISPs don't want you
running a server at home, I would think the carriers don't want or allow for
a static IP for example on their phones. If your server software on the
phone can obtain the ip the phone is assigned, then update no-ip.com or
dyndns.org for example, and you can then give out a domain name that is tied
to one of those accounts, it may be possible to reach the phone from
anywhere assuming the dhcp ip on the phone is updated properly and it works.
I am curious though if the carriers might block "get" requests and such to
phones.

On Wed, Feb 9, 2011 at 8:54 PM, SREEHARI  wrote:

> Hi Kevin,
>
> What I need is to fetch data from a service running in the  phone/
> emulator (android device) to a browser running in some other device.
> Let the second device be a PC. That s what I asked how to get data in
> a normal browser from an android application.
>
> Regards,
> Sreehari.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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