/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/importcontacts/VCFImporter.java

  • Committer: edam
  • Date: 2009-10-03 16:58:29 UTC
  • Revision ID: edam@waxworlds.org-20091003165829-vxhwdodf3400ugs3
Tags: 0.9
- converted project to use Android 1.5 SDK
- cleaned-up some whitespace/newlines in source
- 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

74
74
 
75
75
                        // get files
76
76
                        class VCardFilter implements FilenameFilter {
77
 
                            public boolean accept( File dir, String name ) {
78
 
                                return name.toLowerCase().endsWith( ".vcf" );
79
 
                            }
 
77
                                public boolean accept( File dir, String name ) {
 
78
                                        return name.toLowerCase().endsWith( ".vcf" );
 
79
                                }
80
80
                        }
81
81
                        files = dir.listFiles( new VCardFilter() );
82
82
                }