Question

im trying to use this library but it doesn't allow me: This is my code.

import java.io.IOException;
import java.util.List;

import com.googlecode.sardine.DavResource;
import com.googlecode.sardine.impl.SardineImpl;

import ch.boye.httpclientandroidlib.impl.client.DefaultHttpClient;
import android.app.Activity;
import android.os.Bundle;


public class sardine extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        DefaultHttpClient httpClient = new DefaultHttpClient();
        SardineImpl sardine = new SardineImpl(httpClient,"testuser","test");
        try {
            List<DavResource> resources = sardine.getResources("http://demo.sabredav.org/");
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }


    }
}

but i get this: The constructor SardineImpl(DefaultHttpClient,String,String) is undefined

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top