/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-06-04 16:52:28 UTC
  • Revision ID: edam@waxworlds.org-20110604165228-jam230oo29u1m06u
- properly handle multiple TYPE= params in one entry in a v3.0 vCard
- when deciding which phone number to use as the pimary number, a voice number takes precedence over a non-voice (fax or pager) number of the same standing in terms of being preferred or not.

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;
33
33
public class Intro extends WizardActivity {
34
34
 
35
35
        @Override
36
 
        protected void onCreate( Bundle savedInstanceState )
 
36
        protected void onCreate( Bundle saved_instance_state )
37
37
        {
38
38
                setContentView( R.layout.intro );
39
 
                super.onCreate( savedInstanceState );
 
39
                super.onCreate( saved_instance_state );
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
 
                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
 
                                } );
 
44
                Linkify.addLinks( link,
 
45
                        Pattern.compile( "The Import Contacts homepage" ),
 
46
                        "", null, new Linkify.TransformFilter() {
 
47
                                public String transformUrl( Matcher match, String url ) {
 
48
                                        return "http://www.waxworlds.org/edam/software/android/import-contacts";
 
49
                                }
 
50
                        }
 
51
                );
50
52
        }
51
53
 
52
54
}