1 package com.gss.sample.auth;
\r
3 import android.app.Activity;
\r
4 import android.os.Bundle;
\r
6 import com.pras.SpreadSheetFactory;
\r
8 public class StartActivity extends Activity {
\r
10 String TAG = getClass().getName();
\r
13 public void onCreate(Bundle savedInstanceState) {
\r
14 super.onCreate(savedInstanceState);
\r
16 * Pass the Android Authenticator Helper class to SpreadSheetFactory, so that
\r
17 * SpreadSheetFactory uses this custom authenticator instead of the default
\r
18 * com.pras.auth.BasicAuthenticatorImpl.java
\r
20 * Note: AndroidAuthenticator.java is just a sample implementation for Android
\r
21 * platform. You can change it as per your need.
\r
23 AndroidAuthenticator andoAuthenticator = new AndroidAuthenticator(this);
\r
24 SpreadSheetFactory factory = SpreadSheetFactory.getInstance(andoAuthenticator);
\r
25 factory.getAllSpreadSheets();
\r
27 // TODO: Do SpreadSheet/WorkSheet specific operations (Add/Edit/Delete etc.)
\r