質問編集履歴

2

コードの記述が間違っていたため

2022/08/06 23:45

投稿

kotlinLikeSongs
kotlinLikeSongs

スコア11

test CHANGED
File without changes
test CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
  var tmp_txt = txt.text.toString()
40
40
  var editor = prefs.edit()
41
- editor.putString("Test_Key", tmp_txt)
41
+ editor.putString("test", tmp_txt)
42
42
  editor.apply()
43
43
  }
44
44
 

1

コードに記述ミスがあったため修正しました。

2022/08/06 14:17

投稿

kotlinLikeSongs
kotlinLikeSongs

スコア11

test CHANGED
File without changes
test CHANGED
@@ -19,7 +19,7 @@
19
19
  import android.widget.Button
20
20
  import android.widget.TextView
21
21
  import android.widget.Toast
22
- import matrix.preasents.test.R
22
+ import preasents.test.R
23
23
 
24
24
  class MainActivity : AppCompatActivity() {
25
25
  override fun onCreate(savedInstanceState: Bundle?) {