~ubuntuone-client-engineering/droidcouch/trunk

« back to all changes in this revision

Viewing changes to src/se/msc/android/droidcouch/ubuntuone/samples/SampleUbuntuOneNotesViewer.java

  • Committer: Alejandro J. Cura
  • Date: 2011-03-04 14:08:40 UTC
  • Revision ID: git-v1:8c8baa522b6adb2b798ea333abe95fe5c2a1db19
UI for Ubuntu One login (launchpad bug #725290), modified retry code
to be async and use the login UI

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package se.msc.android.droidcouch.ubuntuone.samples;
 
2
 
 
3
import se.msc.android.droidcouch.ubuntuone.DroidCouchActivity;
 
4
import android.os.Bundle;
 
5
import android.text.method.ScrollingMovementMethod;
 
6
import android.widget.TextView;
 
7
 
 
8
public class SampleUbuntuOneNotesViewer extends DroidCouchActivity {
 
9
        private TextView view;
 
10
 
 
11
        @Override
 
12
        protected void onCreate(Bundle savedInstanceState) {
 
13
                super.onCreate(savedInstanceState);
 
14
                new RetrieveNotesTask(this).execute();
 
15
        view = new TextView(this);
 
16
        view.setMovementMethod(ScrollingMovementMethod.getInstance());
 
17
        setContentView(view);
 
18
        appendString("Connecting to couchdb server...\n\n");
 
19
        }
 
20
 
 
21
        public void appendString(String string) {
 
22
                view.append(string);
 
23
        }
 
24
        
 
25
}