views:

8

answers:

0

Is it possible to list all the files of the google docs in android using gdata-client?

public class GoogleDataExample extends Activity {

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) 
{
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    try
    {   
        DocsService service = new DocsService("test-GoogleDataExample-1.0");

        service.setUserCredentials("xzxxxs", "112212");

        URL documentListFeedUrl = new URL("https://docs.google.com/feeds/documents/private/full/");

        DocumentListFeed feed = service.getFeed(documentListFeedUrl, DocumentListFeed.class);

        for(DocumentListEntry entry: feed.getEntries())
        {
            Toast.makeText(getBaseContext(), entry.getTitle().getPlainText(), Toast.LENGTH_LONG).show();
        }
    }
    catch(Exception e)
    {
        Log.e("Error Message", e.getMessage().toString());
    }
}

}

Here i used the gdata-client-1.0 . but i got only the doc,xls and txt file can u help me to list all the files...