/android/import-contacts

To get this branch, use:
bzr branch http://bzr.ed.am/android/import-contacts

« back to all changes in this revision

Viewing changes to src/org/waxworlds/edam/importcontacts/WizardActivity.java

  • Committer: edam
  • Date: 2010-07-04 14:44:48 UTC
  • Revision ID: edam@waxworlds.org-20100704144448-1m30v811opup20fs
- got rid of the pretend ImportContacts activity alltogether (and made the Intro activity the startup one)
- massively simplified the WizzardActivity class so it works propperly
- moved all code to org.waxworlds.edam
- added an "aborted" message when the importion is aborted
- simplified the 3 actions the worker thread can take when stopping (only 2 were actualy used) to "aborted" or "alldone"
- changed intro message to match website
- bugfix: don't blow up when the My Contacts group is missing

Show diffs side-by-side

added added

removed removed

26
26
import android.app.Activity;
27
27
import android.content.Intent;
28
28
import android.content.SharedPreferences;
29
 
import android.content.res.Configuration;
30
29
import android.os.Bundle;
31
30
import android.view.View;
32
31
import android.widget.Button;
63
62
        }
64
63
 
65
64
        @Override
66
 
        protected void onActivityResult( int requestCode, int resultCode, Intent data )
 
65
        protected void  onActivityResult( int requestCode, int resultCode, Intent data )
67
66
        {
68
67
                if( resultCode == RESULT_OK ) {
69
68
                        setResult( RESULT_OK );
101
100
        {
102
101
                return super.getSharedPreferences( "ImportContacts", 0 );
103
102
        }
104
 
 
105
 
        @Override
106
 
        public void onConfigurationChanged( Configuration newConfig ) {
107
 
                super.onConfigurationChanged( newConfig );
108
 
        }
109
103
}