1
package org.waxworlds.importcontacts;
3
import android.content.SharedPreferences;
4
import android.os.Bundle;
5
import android.widget.RadioGroup;
7
public class Merge extends WizardActivity
10
protected void onCreate( Bundle savedInstanceState )
12
setContentView( R.layout.merge );
13
super.onCreate( savedInstanceState );
15
setNextState( ImportContacts.STATE_DOIT );
19
protected void onPause()
23
SharedPreferences.Editor editor = getSharedPreferences().edit();
25
// radio button selection
26
RadioGroup rg = (RadioGroup)findViewById( R.id.merge_setting );
27
editor.putInt( "merge_setting", rg.getCheckedRadioButtonId() );
33
protected void onResume()
37
SharedPreferences prefs = getSharedPreferences();
39
// radio button selection
40
RadioGroup rg = (RadioGroup)findViewById( R.id.merge_setting );
41
rg.check( prefs.getInt( "merge_setting", R.id.merge_prompt ) );