[android-developers] Re: Send Http Request

2008-11-28 Thread Laguiz

Hello,

You can try comething like that :

//PARAMETERS
ListBasicNameValuePair pairs = new ArrayListBasicNameValuePair();
pairs.add(new BasicNameValuePair(username, ));
pairs.add(new BasicNameValuePair(password, ));
UrlEncodedFormEntity entity = new UrlEncodedFormEntity(pairs);

//POST METHODE
HttpPost httppost = new HttpPost(URL_HERE);
httppost.setHeader(User-Agent, somethinghere);
httppost.setHeader(Content-Type, somethinghere);
httppost.setEntity(httpEntity);

//HTTP CLIENT
DefaultHttpClient httpclient = new DefaultHttpClient();

//EXECUTE CALL
HttpResponse response = httpclient.execute(httppost);

//READ RESPONSE
InputStream is = response.getEntity().getContent();

I hope it help,
Maxence

On Nov 27, 3:45 pm, salman.geek [EMAIL PROTECTED] wrote:
 Please Help me out imn waiting for an urgent reply...

   Hi to all...
   I want to send an Http Request to a url which will give me the images
   which i want to show at ma screen.In this call i will provide the
   image id which i want.
   So im having problem in creating and sending an http call and
   receiving the image from that call..
   Please help me ASAP

   Regards
   Salman Khursheed- Hide quoted text -

  - Show quoted text -


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Send Http Request

2008-11-28 Thread Laguiz

Look at this too :

http://blog.atrexis.com/index.cfm/2008/6/20/Sending-HTTP-requests-in-Android

Maxence

On Nov 27, 3:45 pm, salman.geek [EMAIL PROTECTED] wrote:
 Please Help me out imn waiting for an urgent reply...

   Hi to all...
   I want to send an Http Request to a url which will give me the images
   which i want to show at ma screen.In this call i will provide the
   image id which i want.
   So im having problem in creating and sending an http call and
   receiving the image from that call..
   Please help me ASAP

   Regards
   Salman Khursheed- Hide quoted text -

  - Show quoted text -


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Does ksoap2 is still managed?

2008-09-28 Thread Laguiz

Thanks you very much.

I didn't ask you for the best solution but I said : ...which is/are
best way(s) FOR YOU... I don't speak English very well so I
definitely asked if best practice exist or which is your(s)
solution(s). And you answered my question :). It's OK.

To start I will take a look in different open source projects (if you
know some good examples - no bad - FOR YOU let me know) and think
about solutions.

Thanks,
Max




On 27 sep, 15:26, Mark Murphy [EMAIL PROTECTED] wrote:
 Laguiz wrote:
  I would like to know if ksoap2 is still managed?

 I'm not sure how we would know. This is an Android discussion group.

  Which protocol, API, ...? So, which is/are best way(s) for you to
  communicate between Android and remote server to perform these
  actions:

 You assume there is a best. Everybody has their opinion as what is
 best. The fact that this is Android makes little difference -- there
 is little agreement *anywhere* as to what is best, except that SOAP is
 probably very far down the list of candidates.

 Some like REST over HTTP. Some like XML-RPC. Some like message queues,
 such as Amazon SQS or Apache ActiveMQ. Some like XMPP (a.k.a., Jabber).
 Some like Comet/Bayeux. Some like AtomPub as a specific REST variant.
 Some like SMTP/POP3 as a simplified message queue. Some people like
 binary protocols like Google's Protocol Buffers. I think two or three
 people still like SOAP. And I'm sure there are many others that I am
 just not thinking of right this moment.

 As to specifically which of these work best on Android, it is probably a
 little early to tell, particularly given the shifting sands of the
 SDK. Now that the SDK is far firmer, in a few months, you may start to
 see some recommended practices for what you're describing. And, you'll
 have some open source Android projects to examine to see how they are
 accomplishing it. Just bear in mind that none of those are necessarily
 best; they are just what worked for those people.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Warescription: All titles, revisions,  ebook formats, just $35/year
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Does ksoap2 is still managed?

2008-09-27 Thread Laguiz

No comment ?

On 25 sep, 14:44, Laguiz [EMAIL PROTECTED] wrote:
 Hi,

 I would like to know if ksoap2 is still managed? I'm asking you
 because I'm afraid because last news was posted in 2006 
 onhttp://ksoap2.sourceforge.net/... If no update has been really created
 since 2006, I'm not sure that ksoap2 is a good idea...

 BUT tell me what you think about that because I'm little bit
 disappointed about solutions to communicate between Server and
 Android...  (I'm newbie in mobile development ^^)

 Which protocol, API, ...? So, which is/are best way(s) for you to
 communicate between Android and remote server to perform these
 actions:

 - Simple request
 - Keep STATE between android and server (like httpsession?)
 - **PUSH** data FROM server TO Android device (embedded http server ?)

 Thanks for yours advices,
 Max
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Acessing web services with ksoap

2008-09-25 Thread Laguiz

hi all, I saw on http://ksoap2.sourceforge.net/ that last news was
posted in 2006... Does ksoap2 is still managed?

On 22 sep, 13:12, Mark Murphy [EMAIL PROTECTED] wrote:
 stanchat wrote:
  I sort of new to this and downloaded the following jars.  Where is the
  actual source code located?  I do not see a package with src and lib.

 http://ksoap2.sourceforge.net/

 Click on either Browse Source (if you want to peruse it online) or SVN
 Access (if you want to do a Subversion checkout) in the navigation bar
 on the left.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 1.2 Published!
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Does ksoap2 is still managed?

2008-09-25 Thread Laguiz

Hi,

I would like to know if ksoap2 is still managed? I'm asking you
because I'm afraid because last news was posted in 2006 on
http://ksoap2.sourceforge.net/... If no update has been really created
since 2006, I'm not sure that ksoap2 is a good idea...

BUT tell me what you think about that because I'm little bit
disappointed about solutions to communicate between Server and
Android...  (I'm newbie in mobile development ^^)

Which protocol, API, ...? So, which is/are best way(s) for you to
communicate between Android and remote server to perform these
actions:

- Simple request
- Keep STATE between android and server (like httpsession?)
- **PUSH** data FROM server TO Android device (embedded http server ?)

Thanks for yours advices,
Max
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Emulator Skins for HTC Dream / T-Mobile G1

2008-09-24 Thread Laguiz

nice!

On Sep 24, 9:41 am, Olaf Encke [EMAIL PROTECTED] wrote:
 Hello Android fans and developers.

 I just finished building the first HTC Dream/T-Mobile G1 skins for the
 Android emulator and would like to share them with you. Right now I
 have done the black version of the phone in portrait as well as in
 landscape mode. They are tested to work with the latest Android SDK
 version 1.0r1 (they also work with the 0.9beta).

 You can get them here:http://www.android.encke.net/(preview
 screenshots available)

 I hope you like them and can put them to good use.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---