Hello Stephane,

the internal client connector does not work with Android (see this issue 
[0]). As a workaround, you can use the "net" extension. That is to say, 
add the org.restlet.ext.net.jar archive (taken from the android edition 
for Restlet) to your project, then manually register the extension 
(which won't be required for final 2.0), for example on your activity:
  - add import of org.restlet.ext.net.HttpClientHelper
  - add the following lines :

Engine.getInstance().getRegisteredClients().clear();
// Add the "net" client connector
Engine.getInstance().getRegisteredClients().add(new HttpClientHelper(new 
Client(Protocol.HTTP)));

Best regards,
Thierry Boileau

[0] http://restlet.tigris.org/issues/show_bug.cgi?id=304


> Hello guys,
>
> I use Android 2.0 and Restlet 2.0.
>
> I try to use the tool Restlet to make GET and POST requests to a
> server. Restlet librairies needed were imported to the project. The
> imports are correctly validated by Eclipse.
>
> Unfortunately at compile and launch of the Android application on the
> emulator, it does not work and an error 'Internal Connector Error - No
> available client connector supports" appears (in a not-Android projet,
> it works fine).
>
> I tried to add to the root folder of my project a "lib" folder and to
> copy the necessary libraries directly inside but it changes nothing.
>
> Has someone a solution to this problem?
>
> Thank you for help!
>
> Stephane
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2461705
>
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2461732

Reply via email to