Questions tagged [kotlin-android]

49 questions
-1
votes
1 answer

What to pass in as type handler for Bluetooth class for data transfer?

I am working on an Android app to communicate wirelessly with an Arduino over Bluetooth with an HC-05. I have been following the Transfer Bluetooth data documentation from Android. The following code is what I am using to send and receive data. …
-1
votes
1 answer

Android not getting proper navigation bar height for different device it not match with actual height which visible in nav bar

I am trying to get Bottom navigation bar height, because my view height is dynamic which is dependent on navigation bar height. But issue, In some device i get proper height of navigation bar, and in some device the height comes higher number then…
-1
votes
4 answers

Smart cast to 'Type!' is impossible, because 'variable' is a mutable property that could have been changed by this time

I would really appreciate if someone will help me. I'm trying to make an app using kotlin for android and am running into problems because I get errors like "Smart cast to 'Button!' is impossible, because 'activityButton1' is a mutable property…
-1
votes
1 answer

Kotlin Fragment RecyclerView Adapter ...trying to make ItemClickOnListener to work

This is making me go bananas !! Swear i will never eat bananas again !! I am trying work on a Kotlin/Fragment/RecyclerViewAdapter/OnItemClickListener but it is not working I am trying to make the ItemOnClickListener to work between the RecyclerView…
1 2 3
4