i have a very simple app, an activity with only a button to open another activity
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState:Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val btnAct2 = findViewById<Button>(R.id.btnAct2)
btnAct2.setOnClickListener{
val i = Intent(this,SecondActivity::class.java)
startActivity(i)
}
}
and the Second activity is just empty
class SecondActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState:Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_second)
}
when opening the second activity, log always show a warning, but the activity start normally. Why is this warning?
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@xxxxxx
I search everywhere, but all answers are for activities that doesnt start and app crash, or context does not exist. Tried update android studio, rebuild proyect, invalidate cache like some post sugests, without success.