InputProfilFourthThreeActivity.kt
1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package com.example.vip
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_input_profil_fourth_three.*
class InputProfilFourthThreeActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_input_profil_fourth_three)
previousButton.setOnClickListener {
var intent = Intent(this, InputProfilFourthTwoActivity::class.java)
startActivity(intent)
}
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
nextButton.setOnClickListener {
if(nothingButton.isChecked){editor.putInt("c8_1",1); editor.commit()}
if(jeosodeukButton.isChecked){editor.putInt("c8_3",1); editor.commit()}
if(hanboomoButton.isChecked){editor.putInt("c8_7",1); editor.commit()}
if(oegookinButton.isChecked){editor.putInt("c8_5",1); editor.commit()}
if(damoonhwaButton.isChecked){editor.putInt("c8_4",1); editor.commit()}
if(jaangaeButton.isChecked){editor.putInt("c8_2",1); editor.commit()}
if(imshinchoolsanButton.isChecked){editor.putInt("c7_1",1); editor.commit()}
if(ipyaangButton.isChecked){editor.putInt("c8_10",1); editor.commit()}
if(gaajungButton.isChecked){editor.putInt("c8_11",1); editor.commit()}
if(bookhanButton.isChecked){editor.putInt("c8_6",1); editor.commit()}
if(gookgayoogongButton.isChecked){editor.putInt("c8_8",1); editor.commit()}
if(guitarButton.isChecked){editor.putInt("c8_17",1); editor.commit()}
var intent = Intent(this, InputProfilFourthFourActivity::class.java)
startActivity(intent)
}
}
}