Note that there are some explanatory texts on larger screens.

plurals
  1. PORESTLET Client for Android 2.2
    primarykey
    data
    text
    <p>I am using Android 2.2 phone and the Adroid SDK 2.3.3 (API 10) </p> <p>And I am trying to use REST Client from my phone using RESTLET for Android following the tutorial given in <a href="http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/318-restlet/303-restlet.html" rel="nofollow">RESTLET Tutorial</a> to access the REST Service running on <a href="http://restlet-example-serialization.appspot.com/contacts/123" rel="nofollow">RESTURL</a> But everytime when I install this application both in phone and emulator it crashes with message "Stopped Unexpectedly" and hence Force Close. I have tried to include both org.restlet.ext.httpclient.jar and org.restlet.jar of different RESTLET versions like 2.0.0, 2.0.5, 2.1m2 but the result is always "FORCE CLOSE"</p> <p>Can anyone please tell me if I am doing something wrong? Any advice also would be fine on Restlful client in Android 2.2</p> <p>Code:</p> <pre><code>ClientResource cr = new ClientResource("http://androidgroundapps.appspot.com/rest/contacts/123"); ContactResource resource = cr.wrap(ContactResource.class); // Get the remote contact Contact contact = resource.retrieve(); if(contact == null){ toast("Contact is Null buddy!"); } </code></pre> <p>contact is always null!!</p> <p>Here is the logcat (my app's name is <code>myapp</code>):</p> <pre><code>E/wifi ( 1361): [android_net_wifi_getRssiHelper] rssi -50 I/ActivityManager( 1361): Starting activity: Intent { act=android.intent.action. MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.androidground .apps.myapp/.MyApp } W/Flex ( 1453): getString FLEX_OPERATOR_CODE OPEN W/System.err( 9188): Starting the internal [HTTP/1.1] client I/ActivityManager( 1361): Displayed activity com.androidground.apps.myapp/.MyApp: 1414 ms (total 1414 ms) E/wifi ( 1361): [android_net_wifi_getRssiHelper] rssi -53 W/System.err( 9188): Stopping the internal[HTTP/1.1] client E/wifi ( 1361): [android_net_wifi_getRssiHelper] rssi -51 E/Tethering( 1361): active iface (usb0) reported as added, ignoring D/WifiService( 1361): BroadcastReceiver : android.intent.action.BATTERY_CHANGED </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload