/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-11 23:57:07 UTC
  • Revision ID: edam@waxworlds.org-20101211235707-czyw48tt3hcopuwf
- read vCard files in as raw bytes now and convert to string only tentatively to check for version no.s and property names and params
- ASCII is now (correctly) the default charset
- added conversion from 8-bit ASCII to UTF-8 (not used on 7-bit US-ASCII) which works on raw bytes, not chars
- unencode quoted-printable now works on raw bytes, not chars

Show diffs side-by-side

added added

removed removed

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 homepage" ),
 
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
47
                                        return "http://www.waxworlds.org/edam/software/android/import-contacts";