[android-developers] Re: Calling a URL from Android phone

2009-11-08 Thread moazzamk
Try this:

http://moazzam-khan.com/blog/?p=482

- Moazzam
http://moazzam-khan.com/

On Nov 5, 11:44 pm, Roman ( T-Mobile USA) roman.baumgaert...@t-
mobile.com wrote:
 In general I would first check whether you can connect to a server
 which is on your local LAN.

 For example setup Apache and see whether you can programmatically
 connect. If this works fine, then you camera should be also
 reachable.

 My next question would be, what happens if you try to connect from
 your PC with the camera?

 --
 Roman Baumgaertner
 Sr. SW Engineer-OSDC
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Nov 2, 9:42 pm, David Kebo davidk...@gmail.com wrote:

  An suggestions ?

  On Oct 25, 12:18 pm, David Kebo davidk...@gmail.com wrote:

   I am calling a URL from the Android phone
   This URL is supposed to move a camera connected on the same network

   Here is the code for the URL:
   url = new URL(http://10.0.1.90/axis-cgi/com/ptz.cgi?
   camera=1move=home);
   URLConnection cameraConnection = url.openConnection();
   cameraConnection.connect();

   I get no response when I run this code from the phone. Is this the
   right way to call a URL from an Android phone ?
   Thanks in advance

-- 
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: Calling a URL from Android phone

2009-11-08 Thread Miguel Paraz
On Oct 26, 2:18 am, David Kebo davidk...@gmail.com wrote:
 I am calling a URL from the Android phone
 This URL is supposed to move a camera connected on the same network

 Here is the code for the URL:
 url = new URL(http://10.0.1.90/axis-cgi/com/ptz.cgi?
 camera=1move=home);
 URLConnection cameraConnection = url.openConnection();
 cameraConnection.connect();

 I get no response when I run this code from the phone. Is this the
 right way to call a URL from an Android phone ?
 Thanks in advance

Hi,
Maybe the PTZ URL is a streaming URL that you must keep alive.
Using HttpClient might be better.

No response - the connect() call doesn't return? Or no input is
received?

-- 
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: Calling a URL from Android phone

2009-11-05 Thread David Kebo
An suggestions ?

On Oct 25, 12:18 pm, David Kebo davidk...@gmail.com wrote:
 I am calling a URL from the Android phone
 This URL is supposed to move a camera connected on the same network

 Here is the code for the URL:
 url = new URL(http://10.0.1.90/axis-cgi/com/ptz.cgi?
 camera=1move=home);
 URLConnection cameraConnection = url.openConnection();
 cameraConnection.connect();

 I get no response when I run this code from the phone. Is this the
 right way to call a URL from an Android phone ?
 Thanks in advance

-- 
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: Calling a URL from Android phone

2009-11-05 Thread Roman ( T-Mobile USA)
In general I would first check whether you can connect to a server
which is on your local LAN.

For example setup Apache and see whether you can programmatically
connect. If this works fine, then you camera should be also
reachable.

My next question would be, what happens if you try to connect from
your PC with the camera?

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Nov 2, 9:42 pm, David Kebo davidk...@gmail.com wrote:
 An suggestions ?

 On Oct 25, 12:18 pm, David Kebo davidk...@gmail.com wrote:

  I am calling a URL from the Android phone
  This URL is supposed to move a camera connected on the same network

  Here is the code for the URL:
  url = new URL(http://10.0.1.90/axis-cgi/com/ptz.cgi?
  camera=1move=home);
  URLConnection cameraConnection = url.openConnection();
  cameraConnection.connect();

  I get no response when I run this code from the phone. Is this the
  right way to call a URL from an Android phone ?
  Thanks in advance



-- 
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