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

21
21
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
22
 */
23
23
 
24
 
package org.waxworlds.importcontacts;
 
24
package org.waxworlds.edam.importcontacts;
25
25
 
26
26
import java.io.BufferedReader;
27
27
import java.io.File;
38
38
import java.util.regex.Matcher;
39
39
import java.util.regex.Pattern;
40
40
 
41
 
import org.waxworlds.importcontacts.Importer.AbortImportException;
42
 
 
43
41
import android.content.SharedPreferences;
44
42
import android.provider.Contacts;
45
43
import android.provider.Contacts.PhonesColumns;
246
244
                private Vector< String > _lines = null;
247
245
                private int _nameLevel = NAMELEVEL_NONE;
248
246
 
 
247
                @SuppressWarnings("serial")
249
248
                protected class ParseException extends Exception
250
249
                {
 
250
                        @SuppressWarnings("unused")
251
251
                        public ParseException( String error )
252
252
                        {
253
253
                                super( error );
259
259
                        }
260
260
                }
261
261
 
 
262
                @SuppressWarnings("serial")
262
263
                protected class SkipContactException extends Exception { }
263
264
 
264
265
                public void parseLine( String line )