Home>
I want to save a variable defined in one activity as a string in another activity in a shared preference. However, since the variable is not defined in the activity to be saved, if it is set to ${〇〇}, an error will occur if it cannot be referenced. I just want to save it as a string here, but is there any good way? Please let me know if anyone knows. Thank you.
-
Answer # 1
Related articles
- android emulator - kotlin android studio dialog does not appear
- android studio - [kotlin] there is activity_loginxml, but i get an unresolved reference: activity_login error
- android studio - kotlin: how to implement a drum roll with selectable strings
- Android Studio Kotlin code and java code conversion example
- android studio - [kotlin] the value of the variable becomes empty at the call destination of the function
- how to manage state in android studio kotlin
- [kotlin] [android studio] i don't know how to use realm in suspend function
- The implementation of Android studio generation with Kotlin documents
- [kotlin] [android studio] null is returned even if findviewbyid of linearlayout
- Android Studio kotlin generates editing class comment code
- android studio - [kotlin] adding values to map
- android studio - [kotlin app development] i want to make the specifications so that the number of buttons increases each time th
- Android Studio 360 method of binding new features of view
- Android Studio one-click generation Json entity class tutorial
- java - if you dnd the palette object in android studio, you can install it, but an error occurs
- Android studio solves the operation of logcat without filtering toolbar
- java - [android studio] storage operations (folder creation/file creation) do not work
- android studio logcat No filter Show all logs No way to distinguish application package names
- java - android studio 363, build output is garbled
Related questions
- android studio - i would like to know the reason why cannot be converted appears in jsonobject (string) and how to deal with it
- android studio - null-related error, the application crashes and cannot be resolved
- android studio how to update within the widget's onreceive ()
- android studio - how to change the layout_weight value set in the xml file from the kotlin file
- unable to change the xml layout of an android fragment
- i want to add the characters entered in edittext as listview information by pressing the android button
- i made an android app all that remains is the billing system
- android studio - viewpager and viewadapter cannot be associated
- android studio - in the database sample, i want to prevent the application from crashing even if i click the menu list
- android studio - show message if one of the two edittexts is empty
Isn't it good to pass a character string as an intent from "one activity" to "another activity"?