/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/Intro.java

  • Committer: edam
  • Date: 2011-05-02 18:28:24 UTC
  • Revision ID: edam@waxworlds.org-20110502182824-acgdi3qfxfzqgely
- fixed logic for vcard field types (home, work, cell, etc) so it works
- updated NEWS and TODO
- rewrote most of ContactsCache, including a new ContactIdentifier class to identify contacts in the cache and new cache building code
- contacts now identified in the same way that Andoid displays them (by name, or organisation, or number, or email, in that order)
- propper handling and support for organisations and titles
- validation of imported contact now done by Importer, not VcfImporter
- separated sanitisation and normalisation (for cache lookups)
- generacised PhoneData, EmailData and AddressData classes
- ContactData is now aware of primary numbers, emails and organisations (defaults to the first prefrred one seen, or the first one seen where none is preferred)

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.util.regex.Matcher;
27
27
import java.util.regex.Pattern;
38
38
                setContentView( R.layout.intro );
39
39
                super.onCreate( savedInstanceState );
40
40
 
41
 
                setNextState( ImportContacts.STATE_CONFIGURE_VCF );
 
41
                setNextActivity( ConfigureVCF.class );
42
42
 
43
43
                TextView link = (TextView)findViewById( R.id.intro_link );
44
44
                Linkify.addLinks( link, Pattern.compile( "The Import Contacts homepage" ),
45
 
                                "", null, new Linkify.TransformFilter() {
46
 
                                        public String transformUrl( Matcher match, String url ) {
47
 
                                                return "http://www.waxworlds.org/edam/software/android/import-contacts";
48
 
                                        }
49
 
                                } );
 
45
                        "", null, new Linkify.TransformFilter() {
 
46
                                public String transformUrl( Matcher match, String url ) {
 
47
                                        return "http://www.waxworlds.org/edam/software/android/import-contacts";
 
48
                                }
 
49
                        }
 
50
                );
50
51
        }
51
52
 
52
53
}