InputProfilFourthFourActivity.kt
1.78 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
45
46
47
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_four.*
class InputProfilFourthFourActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_input_profil_fourth_four)
previousButton.setOnClickListener {
var intent = Intent(this, InputProfilFourthThreeActivity::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(pokryukButton.isChecked){editor.putInt("c8_9",1); editor.commit()}
if(pihaeButton.isChecked){editor.putInt("c8_9",1); editor.commit()}
if(kachoolButton.isChecked){editor.putInt("c8_9",1); editor.commit()}
if(sagoButton.isChecked){editor.putInt("c8_9",1); editor.commit()}
if(ihonButton.isChecked){editor.putInt("c8_15",1); editor.commit()}
if(jaehaeButton.isChecked){editor.putInt("c8_9",1); editor.commit()}
if(hakkyobaakButton.isChecked){editor.putInt("c8_16",1); editor.commit()}
if(siljikButton.isChecked){editor.putInt("c5_9",1); editor.commit()}
if(guitarButton.isChecked){editor.putInt("c8_17",1); editor.commit()}
var intent = Intent(this, InputProfilFourthFiveActivity::class.java)
startActivity(intent)
}
}
}