71 questions
environment:kotlin 1.2.51/gson 2.4/okhttp 3.10 retrofit 2.4Retrofit and okhttp retrieve json data from WebAPI and store it in data class in converter.In debug/release mode, it is successfully stored o...
We are looking for a way to get how many Wednesday of that month from the app side on kotlin.
I want to handle sharedViewModel.The VM receives arguments in the constructor.How can I call this with viewModels or activityViewModels?class MyViewModel (vala:Int):ViewModel(){ class Factory construc...
I created an Android app using kotlin and wanted to get sensor information at regular intervals (10 second intervals), but I didn't know how to do it, so I tried to get sensorManager.registerListener(...
It was working properly until the middle, but suddenly I got an Unsolved Reference error.There are about 6 Activity files, but R in R.layout.hogehoge_activity of all files turns red and gives an error...
I was writing Unittest in Kotlin tutorial, but it seems that import fails and I cannot execute it.How can I do this?The environmental and source codes are as follows:Kotlin:kotlinc-jvm1.3.11 (JRE 10.0...
I'm asking you this question because I couldn't concentrate in the process of creating and combining projects separately.The intent may not be the problem, but I checked with Log.d and found no other ...
When selecting any one of the 29 buttons under the condition that n=1 is performed during multiple actions, If the background of the selected button is A, I would like to change it to B.for(i in 0..28...
Hello~~ I'm a beginner who just started learning how to make an app..The app I'm planning is composed of several fragments in one MainActivity.I'm stuck in thinking of one of the Fragments, UserFragme...
class MainActivity : AppCompatActivity() {override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) but1.setOnClickListener(){ var...
« | - 5 - | » |
© 2024 OneMinuteCode. All rights reserved.