1
package org.waxworlds.importcontacts;
3
import android.content.SharedPreferences;
4
import android.os.Bundle;
5
import android.widget.EditText;
7
public class ImportVCF extends WizardActivity
10
protected void onCreate( Bundle savedInstanceState )
12
setContentView( R.layout.import_vcf );
13
super.onCreate( savedInstanceState );
15
setNextState( ImportContacts.STATE_MERGE );
19
protected void onPause() {
22
SharedPreferences.Editor editor = getSharedPreferences().edit();
25
EditText location = (EditText)findViewById( R.id.location );
26
editor.putString( "location", location.getText().toString() );
32
protected void onResume() {
35
SharedPreferences prefs = getSharedPreferences();
38
EditText location = (EditText)findViewById( R.id.location );
39
location.setText( prefs.getString( "location", "/sdcard/contacts" ) );