/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: 2010-12-12 11:25:00 UTC
  • Revision ID: edam@waxworlds.org-20101212112500-ml96qi57t0epia2s
- import phone numbers even when they have no specified type (default to mobile)
- allow all keypad chars in a phone number so that network commands can be prefixed to them

Show diffs side-by-side

added added

removed removed

1
1
/*
2
2
 * Intro.java
3
3
 *
4
 
 * Copyright (C) 2009 Tim Marston <tim@ed.am>
 
4
 * Copyright (C) 2009 Tim Marston <edam@waxworlds.org>
5
5
 *
6
6
 * This file is part of the Import Contacts program (hereafter referred
7
 
 * to as "this program").  For more information, see
8
 
 * http://ed.am/dev/android/import-contacts
 
7
 * to as "this program"). For more information, see
 
8
 * http://www.waxworlds.org/edam/software/android/import-contacts
9
9
 *
10
10
 * This program is free software: you can redistribute it and/or modify
11
11
 * it under the terms of the GNU General Public License as published by
21
21
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
22
 */
23
23
 
24
 
package am.ed.importcontacts;
 
24
package org.waxworlds.edam.importcontacts;
25
25
 
26
26
import java.util.regex.Matcher;
27
27
import java.util.regex.Pattern;
33
33
public class Intro extends WizardActivity {
34
34
 
35
35
        @Override
36
 
        protected void onCreate( Bundle saved_instance_state )
 
36
        protected void onCreate( Bundle savedInstanceState )
37
37
        {
38
38
                setContentView( R.layout.intro );
39
 
                super.onCreate( saved_instance_state );
 
39
                super.onCreate( savedInstanceState );
40
40
 
41
41
                setNextActivity( ConfigureVCF.class );
42
42
 
43
43
                TextView link = (TextView)findViewById( R.id.intro_link );
44
 
                Linkify.addLinks( link,
45
 
                        Pattern.compile( "The Import Contacts webpage" ),
 
44
                Linkify.addLinks( link, Pattern.compile( "The Import Contacts homepage" ),
46
45
                        "", null, new Linkify.TransformFilter() {
47
46
                                public String transformUrl( Matcher match, String url ) {
48
 
                                        return "http://ed.am/dev/android/import-contacts";
 
47
                                        return "http://www.waxworlds.org/edam/software/android/import-contacts";
49
48
                                }
50
49
                        }
51
50
                );