/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/am/ed/importcontacts/Importer.java

  • Committer: edam
  • Date: 2012-12-19 17:50:33 UTC
  • Revision ID: tim@ed.am-20121219175033-61acsxzjulqpnian
made contacts backend throw exceptions when it can't create contacts on the device; specified Locale in lower/upper case conversions; stripped old Contacts types from Importer (and replaced with our own types, which are now converted in the backend; switched using Integer() constructors to Integer.valueOf(); rewrote the main importer routine a bit

Show diffs side-by-side

added added

removed removed

425
425
                        setProgressMessage( R.string.doit_caching );
426
426
 
427
427
                        // create the appropriate backend
428
 
                        if( Integer.parseInt( android.os.Build.VERSION.SDK ) >= 5 )
429
 
                                _backend = new ContactsContractBackend( _doit );
430
 
                        else
 
428
//                      if( Integer.parseInt( android.os.Build.VERSION.SDK ) >= 5 )
 
429
//                              _backend = new ContactsContractBackend( _doit );
 
430
//                      else
431
431
                                _backend = new ContactsBackend( _doit );
432
432
 
433
433
                        // create a cache of existing contacts and populate it